From b62ea63ec0287eeeaf90bf2e4c2494f2f9752c81 Mon Sep 17 00:00:00 2001 From: Geoff Romer Date: Tue, 27 Oct 2015 16:25:41 -0700 Subject: [PATCH] Misc. small editorial cleanups. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Based on feedback from Daniel Krügler. --- any.html | 8 ++++---- cxx14_index.json | 1 + func.html | 10 +++++----- iterator.html | 12 ++++++------ memory.html | 14 +++++++------- numeric.html | 12 +++++++----- optional.html | 2 +- string.view.html | 12 ++++++------ utilities.html | 2 +- 9 files changed, 38 insertions(+), 35 deletions(-) diff --git a/any.html b/any.html index d0cb776..a45fc82 100644 --- a/any.html +++ b/any.html @@ -108,7 +108,7 @@

any construct/destruct

any() noexcept; - this->empty() + this->empty(). @@ -152,7 +152,7 @@

any assignments

any(rhs).swap(*this). No effects if an exception is thrown. - *this + *this. Any exceptions arising from the copy constructor of the contained object.
@@ -160,7 +160,7 @@

any assignments

any& operator=(any&& rhs) noexcept; any(std::move(rhs)).swap(*this). - *this + *this. The state of *this is equivalent to the original state of rhs and rhs is left in a valid but otherwise unspecified state. @@ -174,7 +174,7 @@

any assignments

If is_copy_constructible_v<T> is false, the program is ill-formed. Constructs an object tmp of type any that contains an object of type T direct-initialized with std::forward<ValueType>(rhs), and tmp.swap(*this). No effects if an exception is thrown. - *this + *this. This operator shall not participate in overload resolution if decay_t<ValueType> is the same type as any. Any exception thrown by the selected constructor of T. diff --git a/cxx14_index.json b/cxx14_index.json index 89a33ac..cbb03d1 100644 --- a/cxx14_index.json +++ b/cxx14_index.json @@ -67,6 +67,7 @@ "algorithms.general": "25.1", "rand.req.genl": "26.5.1.1", "rand.req.urng": "26.5.1.3", + "rand.predef": "26.5.5", "rand.dist.uni.int": "26.5.8.2.1", "futures.promise": "30.6.5", "futures.task": "30.6.9", diff --git a/func.html b/func.html index fc37f31..625a2d2 100644 --- a/func.html +++ b/func.html @@ -205,14 +205,14 @@

function construct/copy/destroy

function& operator=(const function& f); function(allocator_arg, ALLOCATOR_OF(*this), f).swap(*this); - *this + *this. function& operator=(function&& f); function(allocator_arg, ALLOCATOR_OF(*this), std::move(f)).swap(*this); - *this + *this. The following Effects element has been fixed and syncs the wording "*this != NULL" @@ -225,21 +225,21 @@

function construct/copy/destroy

!(*this). The memory resource returned by get_memory_resource() after the assignment is equivalent to the memory resource before the assignment. the address returned by get_memory_resource() might change - *this + *this. template<class F> function& operator=(F&& f); function(allocator_arg, ALLOCATOR_OF(*this), std::forward<F>(f)).swap(*this); - *this + *this. template<class F> function& operator=(reference_wrapper<F> f); function(allocator_arg, ALLOCATOR_OF(*this), f).swap(*this); - *this + *this. diff --git a/iterator.html b/iterator.html index 79ac0bc..1d01f57 100644 --- a/iterator.html +++ b/iterator.html @@ -98,7 +98,7 @@

ostream_joiner operations

template<typename T> -ostream_joiner<DelimT, charT, traits>& operator=(const T& value); +ostream_joiner& operator=(const T& value);
if (!first_element)
@@ -110,16 +110,16 @@ 

ostream_joiner operations

- ostream_joiner<DelimT, charT, traits>& operator*() noexcept; + ostream_joiner& operator*() noexcept; - *this + *this. - ostream_joiner<DelimT, charT, traits>& operator++() noexcept; - ostream_joiner<DelimT, charT, traits>& operator++(int) noexcept; + ostream_joiner& operator++() noexcept; + ostream_joiner& operator++(int) noexcept; - *this + *this. diff --git a/memory.html b/memory.html index 773889a..ed67751 100644 --- a/memory.html +++ b/memory.html @@ -395,7 +395,7 @@

shared_ptr constructors

Constructs a shared_ptr instance that stores p and shares ownership with r. - get() == p && use_count() == r.use_count() + get() == p && use_count() == r.use_count().

To avoid the possibility of a dangling pointer, the user of this constructor must ensure that p remains valid at least until the ownership group of r is destroyed. @@ -502,7 +502,7 @@

shared_ptr casts

The expression static_cast<T*>((U*)0) shall be well formed. - shared_ptr<T>(r, static_cast<typename shared_ptr<T>::element_type*>(r.get())) + shared_ptr<T>(r, static_cast<typename shared_ptr<T>::element_type*>(r.get())).

The seemingly equivalent expression shared_ptr<T>(static_cast<T*>(r.get())) will eventually result in undefined behavior, attempting to delete the same object twice. @@ -902,7 +902,7 @@

polymorphic_allocator constructors

r is non-null. Sets m_resource to r. - Nothing + Nothing. This constructor provides an implicit conversion from memory_resource*. @@ -1035,7 +1035,7 @@

polymorphic_allocator equality

template <class T1, class T2> bool operator!=(const polymorphic_allocator<T1>& a, const polymorphic_allocator<T2>& b) noexcept; - ! (a == b) + ! (a == b). @@ -1379,7 +1379,7 @@

pool resource members

Return the memory at p to the pool. It is unspecified if or under what circumstances this operation will result in a call to upstream_resource()->deallocate(). - Nothing + Nothing. @@ -1520,8 +1520,8 @@

monotonic_buffer_resource members

void do_deallocate(void* p, size_t bytes, size_t alignment); - None - Nothing + None. + Nothing. Memory used by this resource increases monotonically until its destruction. diff --git a/numeric.html b/numeric.html index d6f8a43..47bef52 100644 --- a/numeric.html +++ b/numeric.html @@ -90,14 +90,16 @@

Header <experimental/random> synopsis

Utilities

Function template randint

-

A separate per-thread engine of type default_random_engine, - initialized to an unpredictable state, shall be maintained for each thread.

+

A separate per-thread engine of type default_random_engine + (), initialized to an + unpredictable state, shall be maintained for each thread.

template<class IntType> IntType randint(IntType a, IntType b); - ab. If the template argument - does not meet the requirements for IntType (), - the program is ill-formed. + ab. + If the template argument does not meet the requirements + for IntType (), + the program is ill-formed. A random integer i, aib, produced from a thread-local instance of uniform_int_distribution<IntType> () invoked with the diff --git a/optional.html b/optional.html index b2ca069..da9cbea 100644 --- a/optional.html +++ b/optional.html @@ -441,7 +441,7 @@

Observers

constexpr T&& operator*() &&; constexpr const T&& operator*() const &&; - *this contains a value + *this contains a value. Equivalent to return std::move(*val);
diff --git a/string.view.html b/string.view.html index ddb7f97..16f1516 100644 --- a/string.view.html +++ b/string.view.html @@ -268,7 +268,7 @@

basic_string_view iterator support

constexpr const_iterator end() const noexcept; constexpr const_iterator cend() const noexcept; - begin() + size() + begin() + size().
@@ -291,7 +291,7 @@

basic_string_view capacity

constexpr size_type size() const noexcept; - size_ + size_. @@ -317,7 +317,7 @@

basic_string_view element access

constexpr const_reference operator[](size_type pos) const; pos < size(). - data_[pos] + data_[pos]. Nothing.

Unlike basic_string::operator[], basic_string_view::operator[](size()) has undefined behavior instead of returning charT().

@@ -349,7 +349,7 @@

basic_string_view element access

constexpr const_pointer data() const noexcept; - data_ + data_.

Unlike basic_string::data() and string literals, data() may return a pointer to a buffer that is not null-terminated. Therefore it is typically a mistake to pass data() to a routine that takes just a const charT* and expects a null-terminated string.

@@ -362,14 +362,14 @@

basic_string_view modifiers

constexpr void remove_prefix(size_type n); - n <= size() + n <= size(). Equivalent to data_ += n; size_ -= n; constexpr void remove_suffix(size_type n); - n <= size() + n <= size(). Equivalent to size_ -= n; diff --git a/utilities.html b/utilities.html index 730e817..a5c6fb5 100644 --- a/utilities.html +++ b/utilities.html @@ -13,7 +13,7 @@

Header <experimental/utility> synopsis

namespace experimental { inline namespace fundamentals_v2 { - , erased-type placeholder + struct erased_type { }; } // namespace fundamentals_v2