From 8812114601d26068aec36a5842bd4d51573ce7ee Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Thu, 15 Jun 2017 21:34:53 +0300 Subject: [PATCH] Fix line wrapping in pdf --- doc/smart_ptr/enable_shared_from_this.adoc | 8 ++++---- doc/smart_ptr/scoped_array.adoc | 24 ++++++++++++++-------- doc/smart_ptr/scoped_ptr.adoc | 12 +++++++---- 3 files changed, 28 insertions(+), 16 deletions(-) diff --git a/doc/smart_ptr/enable_shared_from_this.adoc b/doc/smart_ptr/enable_shared_from_this.adoc index 26dc9fb..757c1d4 100644 --- a/doc/smart_ptr/enable_shared_from_this.adoc +++ b/doc/smart_ptr/enable_shared_from_this.adoc @@ -105,10 +105,10 @@ Returns:: `*this`. NOTE: `weak_this_` is unchanged. ``` -template shared_ptr enable_shared_from_this::shared_from_this(); +template shared_ptr shared_from_this(); ``` ``` -template shared_ptr enable_shared_from_this::shared_from_this() const; +template shared_ptr shared_from_this() const; ``` [none] * {blank} @@ -133,10 +133,10 @@ the construction of `p` will automatically initialize `p\->weak_this_` to `p`. ==== ``` -template weak_ptr enable_shared_from_this::weak_from_this() noexcept; +template weak_ptr weak_from_this() noexcept; ``` ``` -template weak_ptr enable_shared_from_this::weak_from_this() const noexcept; +template weak_ptr weak_from_this() const noexcept; ``` [none] * {blank} diff --git a/doc/smart_ptr/scoped_array.adoc b/doc/smart_ptr/scoped_array.adoc index 73d8a6c..9746a7c 100644 --- a/doc/smart_ptr/scoped_array.adoc +++ b/doc/smart_ptr/scoped_array.adoc @@ -76,11 +76,15 @@ namespace boost { template void swap(scoped_array & a, scoped_array & b) noexcept; - template bool operator==( scoped_array const & p, std::nullptr_t ) noexcept; - template bool operator==( std::nullptr_t, scoped_array const & p ) noexcept; + template + bool operator==( scoped_array const & p, std::nullptr_t ) noexcept; + template + bool operator==( std::nullptr_t, scoped_array const & p ) noexcept; - template bool operator!=( scoped_array const & p, std::nullptr_t ) noexcept; - template bool operator!=( std::nullptr_t, scoped_array const & p ) noexcept; + template + bool operator!=( scoped_array const & p, std::nullptr_t ) noexcept; + template + bool operator!=( std::nullptr_t, scoped_array const & p ) noexcept; } ``` @@ -154,14 +158,18 @@ Equivalent to `a.swap(b)`. ### comparisons - template bool operator==( scoped_array const & p, std::nullptr_t ) noexcept; + template + bool operator==( scoped_array const & p, std::nullptr_t ) noexcept; - template bool operator==( std::nullptr_t, scoped_array const & p ) noexcept; + template + bool operator==( std::nullptr_t, scoped_array const & p ) noexcept; Returns `p.get() == nullptr`. - template bool operator!=( scoped_array const & p, std::nullptr_t ) noexcept; + template + bool operator!=( scoped_array const & p, std::nullptr_t ) noexcept; - template bool operator!=( std::nullptr_t, scoped_array const & p ) noexcept; + template + bool operator!=( std::nullptr_t, scoped_array const & p ) noexcept; Returns `p.get() != nullptr`. diff --git a/doc/smart_ptr/scoped_ptr.adoc b/doc/smart_ptr/scoped_ptr.adoc index 8c0bef9..4f08811 100644 --- a/doc/smart_ptr/scoped_ptr.adoc +++ b/doc/smart_ptr/scoped_ptr.adoc @@ -73,11 +73,15 @@ namespace boost { template void swap(scoped_ptr & a, scoped_ptr & b) noexcept; - template bool operator==( scoped_ptr const & p, std::nullptr_t ) noexcept; - template bool operator==( std::nullptr_t, scoped_ptr const & p ) noexcept; + template + bool operator==( scoped_ptr const & p, std::nullptr_t ) noexcept; + template + bool operator==( std::nullptr_t, scoped_ptr const & p ) noexcept; - template bool operator!=( scoped_ptr const & p, std::nullptr_t ) noexcept; - template bool operator!=( std::nullptr_t, scoped_ptr const & p ) noexcept; + template + bool operator!=( scoped_ptr const & p, std::nullptr_t ) noexcept; + template + bool operator!=( std::nullptr_t, scoped_ptr const & p ) noexcept; } ```