mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2024-11-12 21:09:01 +00:00
support SPROUT_CXX14_CONSTEXPR
This commit is contained in:
parent
88ee58bcf4
commit
2b0aaf71b4
139 changed files with 295 additions and 295 deletions
|
@ -48,7 +48,7 @@ Supported Compilers
|
|||
|
||||
Linux:
|
||||
|
||||
* GCC, C++11 mode: 4.7.0, 4.7.1, 4.7.2, 4.7.3, 4.8.0, 4.8.1
|
||||
* GCC, C++11 mode: 4.7.0, 4.7.1, 4.7.2, 4.7.3, 4.8.0, 4.8.1, 4.8.2
|
||||
* Clang, C++11 mode: 3.2, 3.3
|
||||
|
||||
.. _sprout-author:
|
||||
|
|
|
@ -7,7 +7,7 @@ Interface
|
|||
========================================
|
||||
.. sourcecode:: c++
|
||||
|
||||
void assign(const_reference value);
|
||||
SPROUT_CXX14_CONSTEXPR void assign(const_reference value);
|
||||
|
||||
SPROUT_CONSTEXPR array assign(const_reference value) const;
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ Interface
|
|||
========================================
|
||||
.. sourcecode:: c++
|
||||
|
||||
reference at(size_type n);
|
||||
SPROUT_CXX14_CONSTEXPR reference at(size_type n);
|
||||
|
||||
SPROUT_CONSTEXPR const_reference at(size_type n) const;
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ Interface
|
|||
========================================
|
||||
.. sourcecode:: c++
|
||||
|
||||
reference back();
|
||||
SPROUT_CXX14_CONSTEXPR reference back();
|
||||
|
||||
SPROUT_CONSTEXPR const_reference back() const;
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ Interface
|
|||
========================================
|
||||
.. sourcecode:: c++
|
||||
|
||||
iterator begin() SPROUT_NOEXCEPT;
|
||||
SPROUT_CXX14_CONSTEXPR iterator begin() SPROUT_NOEXCEPT;
|
||||
|
||||
SPROUT_CONSTEXPR const_iterator begin() const SPROUT_NOEXCEPT;
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ Interface
|
|||
========================================
|
||||
.. sourcecode:: c++
|
||||
|
||||
pointer c_array() SPROUT_NOEXCEPT;
|
||||
SPROUT_CXX14_CONSTEXPR pointer c_array() SPROUT_NOEXCEPT;
|
||||
|
||||
SPROUT_CONSTEXPR const_pointer c_array() const SPROUT_NOEXCEPT;
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ Interface
|
|||
========================================
|
||||
.. sourcecode:: c++
|
||||
|
||||
pointer data() SPROUT_NOEXCEPT;
|
||||
SPROUT_CXX14_CONSTEXPR pointer data() SPROUT_NOEXCEPT;
|
||||
|
||||
SPROUT_CONSTEXPR const_pointer data() const SPROUT_NOEXCEPT;
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ Interface
|
|||
========================================
|
||||
.. sourcecode:: c++
|
||||
|
||||
iterator end() SPROUT_NOEXCEPT;
|
||||
SPROUT_CXX14_CONSTEXPR iterator end() SPROUT_NOEXCEPT;
|
||||
|
||||
SPROUT_CONSTEXPR const_iterator end() const SPROUT_NOEXCEPT;
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ Interface
|
|||
========================================
|
||||
.. sourcecode:: c++
|
||||
|
||||
void fill(const_reference value);
|
||||
SPROUT_CXX14_CONSTEXPR void fill(const_reference value);
|
||||
|
||||
SPROUT_CONSTEXPR array fill(const_reference value) const;
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ Interface
|
|||
========================================
|
||||
.. sourcecode:: c++
|
||||
|
||||
reference front();
|
||||
SPROUT_CXX14_CONSTEXPR reference front();
|
||||
|
||||
SPROUT_CONSTEXPR const_reference front() const;
|
||||
|
||||
|
|
|
@ -167,25 +167,25 @@ Interface of all
|
|||
|
||||
// construct/copy/destroy:
|
||||
template<typename T2>
|
||||
array& operator=(array<T2, N> const& rhs);
|
||||
SPROUT_CXX14_CONSTEXPR array& operator=(array<T2, N> const& rhs);
|
||||
template<typename T2>
|
||||
array& operator=(array<T2, N>&& rhs);
|
||||
SPROUT_CXX14_CONSTEXPR array& operator=(array<T2, N>&& rhs);
|
||||
|
||||
// modifiers:
|
||||
void fill(const_reference value);
|
||||
SPROUT_CXX14_CONSTEXPR void fill(const_reference value);
|
||||
SPROUT_CONSTEXPR array fill(const_reference value) const;
|
||||
void assign(const_reference value);
|
||||
SPROUT_CXX14_CONSTEXPR void assign(const_reference value);
|
||||
SPROUT_CONSTEXPR array assign(const_reference value) const;
|
||||
void swap(array&) SPROUT_NOEXCEPT_EXPR(SPROUT_NOEXCEPT_EXPR(std::swap(std::declval<T&>(), std::declval<T&>())));
|
||||
SPROUT_CXX14_CONSTEXPR void swap(array&) SPROUT_NOEXCEPT_EXPR(SPROUT_NOEXCEPT_EXPR(std::swap(std::declval<T&>(), std::declval<T&>())));
|
||||
|
||||
// iterators:
|
||||
iterator begin() SPROUT_NOEXCEPT;
|
||||
SPROUT_CXX14_CONSTEXPR iterator begin() SPROUT_NOEXCEPT;
|
||||
SPROUT_CONSTEXPR const_iterator begin() const SPROUT_NOEXCEPT;
|
||||
iterator end() SPROUT_NOEXCEPT;
|
||||
SPROUT_CXX14_CONSTEXPR iterator end() SPROUT_NOEXCEPT;
|
||||
SPROUT_CONSTEXPR const_iterator end() const SPROUT_NOEXCEPT;
|
||||
reverse_iterator rbegin() SPROUT_NOEXCEPT;
|
||||
SPROUT_CXX14_CONSTEXPR reverse_iterator rbegin() SPROUT_NOEXCEPT;
|
||||
SPROUT_CONSTEXPR const_reverse_iterator rbegin() const SPROUT_NOEXCEPT;
|
||||
reverse_iterator rend() SPROUT_NOEXCEPT;
|
||||
SPROUT_CXX14_CONSTEXPR reverse_iterator rend() SPROUT_NOEXCEPT;
|
||||
SPROUT_CONSTEXPR const_reverse_iterator rend() const SPROUT_NOEXCEPT;
|
||||
SPROUT_CONSTEXPR const_iterator cbegin() const SPROUT_NOEXCEPT;
|
||||
SPROUT_CONSTEXPR const_iterator cend() const SPROUT_NOEXCEPT;
|
||||
|
@ -198,16 +198,16 @@ Interface of all
|
|||
SPROUT_CONSTEXPR bool empty() const SPROUT_NOEXCEPT;
|
||||
|
||||
// element access:
|
||||
reference operator[](size_type n);
|
||||
SPROUT_CXX14_CONSTEXPR reference operator[](size_type n);
|
||||
SPROUT_CONSTEXPR const_reference operator[](size_type n) const;
|
||||
reference at(size_type n);
|
||||
SPROUT_CXX14_CONSTEXPR reference at(size_type n);
|
||||
SPROUT_CONSTEXPR const_reference at(size_type n) const;
|
||||
reference front();
|
||||
SPROUT_CXX14_CONSTEXPR reference front();
|
||||
SPROUT_CONSTEXPR const_reference front() const;
|
||||
reference back();
|
||||
SPROUT_CXX14_CONSTEXPR reference back();
|
||||
SPROUT_CONSTEXPR const_reference back() const;
|
||||
pointer data() SPROUT_NOEXCEPT;
|
||||
SPROUT_CXX14_CONSTEXPR pointer data() SPROUT_NOEXCEPT;
|
||||
SPROUT_CONSTEXPR const_pointer data() const SPROUT_NOEXCEPT;
|
||||
pointer c_array() SPROUT_NOEXCEPT;
|
||||
SPROUT_CXX14_CONSTEXPR pointer c_array() SPROUT_NOEXCEPT;
|
||||
SPROUT_CONSTEXPR const_pointer c_array() const SPROUT_NOEXCEPT;
|
||||
};
|
||||
|
|
|
@ -8,10 +8,10 @@ Interface
|
|||
.. sourcecode:: c++
|
||||
|
||||
template<typename T2>
|
||||
array& operator=(array<T2, N> const& rhs);
|
||||
SPROUT_CXX14_CONSTEXPR array& operator=(array<T2, N> const& rhs);
|
||||
|
||||
template<typename T2>
|
||||
array& operator=(array<T2, N>&& rhs);
|
||||
SPROUT_CXX14_CONSTEXPR array& operator=(array<T2, N>&& rhs);
|
||||
|
||||
Effects
|
||||
========================================
|
||||
|
|
|
@ -7,7 +7,7 @@ Interface
|
|||
========================================
|
||||
.. sourcecode:: c++
|
||||
|
||||
reference operator[](size_type n);
|
||||
SPROUT_CXX14_CONSTEXPR reference operator[](size_type n);
|
||||
|
||||
SPROUT_CONSTEXPR const_reference operator[](size_type n) const;
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ Interface
|
|||
========================================
|
||||
.. sourcecode:: c++
|
||||
|
||||
reverse_iterator rbegin() SPROUT_NOEXCEPT;
|
||||
SPROUT_CXX14_CONSTEXPR reverse_iterator rbegin() SPROUT_NOEXCEPT;
|
||||
|
||||
SPROUT_CONSTEXPR const_reverse_iterator rbegin() const SPROUT_NOEXCEPT;
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ Interface
|
|||
========================================
|
||||
.. sourcecode:: c++
|
||||
|
||||
reverse_iterator rend() SPROUT_NOEXCEPT;
|
||||
SPROUT_CXX14_CONSTEXPR reverse_iterator rend() SPROUT_NOEXCEPT;
|
||||
|
||||
SPROUT_CONSTEXPR const_reverse_iterator rend() const SPROUT_NOEXCEPT;
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ Interface
|
|||
.. sourcecode:: c++
|
||||
|
||||
template<typename T, std::size_t N>
|
||||
inline void
|
||||
inline SPROUT_CXX14_CONSTEXPR void
|
||||
swap(sprout::array<T, N>& lhs, sprout::array<T, N>& rhs)
|
||||
SPROUT_NOEXCEPT_EXPR(SPROUT_NOEXCEPT_EXPR(lhs.swap(rhs)));
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ Interface
|
|||
========================================
|
||||
.. sourcecode:: c++
|
||||
|
||||
void swap(array& other) SPROUT_NOEXCEPT_EXPR(SPROUT_NOEXCEPT_EXPR(std::swap(std::declval<T&>(), std::declval<T&>())));
|
||||
SPROUT_CXX14_CONSTEXPR void swap(array& other) SPROUT_NOEXCEPT_EXPR(SPROUT_NOEXCEPT_EXPR(std::swap(std::declval<T&>(), std::declval<T&>())));
|
||||
|
||||
Effects
|
||||
========================================
|
||||
|
|
|
@ -8,7 +8,7 @@ Interface
|
|||
.. sourcecode:: c++
|
||||
|
||||
template<typename StringConstIterator>
|
||||
basic_string& assign(StringConstIterator s, size_type n);
|
||||
SPROUT_CXX14_CONSTEXPR basic_string& assign(StringConstIterator s, size_type n);
|
||||
|
||||
Requires
|
||||
========================================
|
||||
|
|
|
@ -8,7 +8,7 @@ Interface
|
|||
.. sourcecode:: c++
|
||||
|
||||
template<std::size_t N2>
|
||||
basic_string& assign(basic_string<T, N2, Traits> const& str);
|
||||
SPROUT_CXX14_CONSTEXPR basic_string& assign(basic_string<T, N2, Traits> const& str);
|
||||
|
||||
Effects
|
||||
========================================
|
||||
|
|
|
@ -7,7 +7,7 @@ Interface
|
|||
========================================
|
||||
.. sourcecode:: c++
|
||||
|
||||
reference at(size_type n);
|
||||
SPROUT_CXX14_CONSTEXPR reference at(size_type n);
|
||||
|
||||
SPROUT_CONSTEXPR const_reference at(size_type n) const;
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ Interface
|
|||
========================================
|
||||
.. sourcecode:: c++
|
||||
|
||||
reference back();
|
||||
SPROUT_CXX14_CONSTEXPR reference back();
|
||||
|
||||
SPROUT_CONSTEXPR const_reference back() const;
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ Interface
|
|||
========================================
|
||||
.. sourcecode:: c++
|
||||
|
||||
iterator begin() SPROUT_NOEXCEPT;
|
||||
SPROUT_CXX14_CONSTEXPR iterator begin() SPROUT_NOEXCEPT;
|
||||
|
||||
SPROUT_CONSTEXPR const_iterator begin() const SPROUT_NOEXCEPT;
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ Interface
|
|||
========================================
|
||||
.. sourcecode:: c++
|
||||
|
||||
pointer c_array() SPROUT_NOEXCEPT;
|
||||
SPROUT_CXX14_CONSTEXPR pointer c_array() SPROUT_NOEXCEPT;
|
||||
|
||||
SPROUT_CONSTEXPR const_pointer c_array() const SPROUT_NOEXCEPT;
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ Interface
|
|||
========================================
|
||||
.. sourcecode:: c++
|
||||
|
||||
void clear() SPROUT_NOEXCEPT;
|
||||
SPROUT_CXX14_CONSTEXPR void clear() SPROUT_NOEXCEPT;
|
||||
|
||||
Effects
|
||||
========================================
|
||||
|
|
|
@ -307,7 +307,7 @@ Interface
|
|||
========================================
|
||||
.. sourcecode:: c++
|
||||
|
||||
basic_string(std::initializer_list<value_type> il);
|
||||
SPROUT_INITIALIZER_LIST_CONSTEXPR basic_string(std::initializer_list<value_type> il);
|
||||
|
||||
Requires
|
||||
========================================
|
||||
|
|
|
@ -7,7 +7,7 @@ Interface
|
|||
========================================
|
||||
.. sourcecode:: c++
|
||||
|
||||
pointer data() SPROUT_NOEXCEPT;
|
||||
SPROUT_CXX14_CONSTEXPR pointer data() SPROUT_NOEXCEPT;
|
||||
|
||||
SPROUT_CONSTEXPR const_pointer data() const SPROUT_NOEXCEPT;
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ Interface
|
|||
========================================
|
||||
.. sourcecode:: c++
|
||||
|
||||
iterator end() SPROUT_NOEXCEPT;
|
||||
SPROUT_CXX14_CONSTEXPR iterator end() SPROUT_NOEXCEPT;
|
||||
|
||||
SPROUT_CONSTEXPR const_iterator end() const SPROUT_NOEXCEPT;
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ Interface
|
|||
========================================
|
||||
.. sourcecode:: c++
|
||||
|
||||
reference front();
|
||||
SPROUT_CXX14_CONSTEXPR reference front();
|
||||
|
||||
SPROUT_CONSTEXPR const_reference front() const;
|
||||
|
||||
|
|
|
@ -256,21 +256,21 @@ Interface of all
|
|||
SPROUT_CONSTEXPR basic_string(size_type n, value_type c);
|
||||
template<typename InputIterator>
|
||||
SPROUT_CONSTEXPR basic_string(InputIterator first, InputIterator last);
|
||||
basic_string(std::initializer_list<value_type> il);
|
||||
basic_string& operator=(basic_string const& rhs);
|
||||
SPROUT_INITIALIZER_LIST_CONSTEXPR basic_string(std::initializer_list<value_type> il);
|
||||
SPROUT_CXX14_CONSTEXPR basic_string& operator=(basic_string const& rhs);
|
||||
template<std::size_t N2, typename Enable = typename std::enable_if<(N2 != N)>::type>
|
||||
basic_string& operator=(basic_string<T, N2, Traits> const& rhs);
|
||||
basic_string& operator=(value_type const* rhs);
|
||||
basic_string& operator=(value_type rhs);
|
||||
SPROUT_CXX14_CONSTEXPR basic_string& operator=(basic_string<T, N2, Traits> const& rhs);
|
||||
SPROUT_CXX14_CONSTEXPR basic_string& operator=(value_type const* rhs);
|
||||
SPROUT_CXX14_CONSTEXPR basic_string& operator=(value_type rhs);
|
||||
|
||||
// iterators:
|
||||
iterator begin() SPROUT_NOEXCEPT;
|
||||
SPROUT_CXX14_CONSTEXPR iterator begin() SPROUT_NOEXCEPT;
|
||||
SPROUT_CONSTEXPR const_iterator begin() const SPROUT_NOEXCEPT;
|
||||
iterator end() SPROUT_NOEXCEPT;
|
||||
SPROUT_CXX14_CONSTEXPR iterator end() SPROUT_NOEXCEPT;
|
||||
SPROUT_CONSTEXPR const_iterator end() const SPROUT_NOEXCEPT;
|
||||
reverse_iterator rbegin() SPROUT_NOEXCEPT;
|
||||
SPROUT_CXX14_CONSTEXPR reverse_iterator rbegin() SPROUT_NOEXCEPT;
|
||||
SPROUT_CONSTEXPR const_reverse_iterator rbegin() const SPROUT_NOEXCEPT;
|
||||
reverse_iterator rend() SPROUT_NOEXCEPT;
|
||||
SPROUT_CXX14_CONSTEXPR reverse_iterator rend() SPROUT_NOEXCEPT;
|
||||
SPROUT_CONSTEXPR const_reverse_iterator rend() const SPROUT_NOEXCEPT;
|
||||
SPROUT_CONSTEXPR const_iterator cbegin() const SPROUT_NOEXCEPT;
|
||||
SPROUT_CONSTEXPR const_iterator cend() const SPROUT_NOEXCEPT;
|
||||
|
@ -281,38 +281,38 @@ Interface of all
|
|||
SPROUT_CONSTEXPR size_type size() const SPROUT_NOEXCEPT;
|
||||
SPROUT_CONSTEXPR size_type length() const SPROUT_NOEXCEPT;
|
||||
SPROUT_CONSTEXPR size_type max_size() const SPROUT_NOEXCEPT;
|
||||
void resize(size_type n, value_type c);
|
||||
void resize(size_type n);
|
||||
void clear() SPROUT_NOEXCEPT;
|
||||
SPROUT_CXX14_CONSTEXPR void resize(size_type n, value_type c);
|
||||
SPROUT_CXX14_CONSTEXPR void resize(size_type n);
|
||||
SPROUT_CXX14_CONSTEXPR void clear() SPROUT_NOEXCEPT;
|
||||
SPROUT_CONSTEXPR bool empty() const SPROUT_NOEXCEPT;
|
||||
|
||||
// element access:
|
||||
reference operator[](size_type i);
|
||||
SPROUT_CXX14_CONSTEXPR reference operator[](size_type i);
|
||||
SPROUT_CONSTEXPR const_reference operator[](size_type i) const;
|
||||
reference at(size_type i);
|
||||
SPROUT_CXX14_CONSTEXPR reference at(size_type i);
|
||||
SPROUT_CONSTEXPR const_reference at(size_type i) const;
|
||||
reference front();
|
||||
SPROUT_CXX14_CONSTEXPR reference front();
|
||||
SPROUT_CONSTEXPR const_reference front() const;
|
||||
reference back();
|
||||
SPROUT_CXX14_CONSTEXPR reference back();
|
||||
SPROUT_CONSTEXPR const_reference back() const;
|
||||
|
||||
// modifiers:
|
||||
template<std::size_t N2>
|
||||
basic_string& assign(basic_string<T, N2, Traits> const& str);
|
||||
SPROUT_CXX14_CONSTEXPR basic_string& assign(basic_string<T, N2, Traits> const& str);
|
||||
template<std::size_t N2>
|
||||
basic_string& assign(basic_string<T, N2, Traits> const& str, size_type pos, size_type n);
|
||||
basic_string& assign(value_type const* s, size_type n);
|
||||
basic_string& assign(value_type const* s);
|
||||
basic_string& assign(size_type n, value_type c);
|
||||
SPROUT_CXX14_CONSTEXPR basic_string& assign(basic_string<T, N2, Traits> const& str, size_type pos, size_type n);
|
||||
SPROUT_CXX14_CONSTEXPR basic_string& assign(value_type const* s, size_type n);
|
||||
SPROUT_CXX14_CONSTEXPR basic_string& assign(value_type const* s);
|
||||
SPROUT_CXX14_CONSTEXPR basic_string& assign(size_type n, value_type c);
|
||||
template<typename InputIterator>
|
||||
basic_string& assign(InputIterator first, InputIterator last);
|
||||
void swap(basic_string& other) SPROUT_NOEXCEPT_EXPR(SPROUT_NOEXCEPT_EXPR(std::swap(std::declval<T&>(), std::declval<T&>())));
|
||||
SPROUT_CXX14_CONSTEXPR basic_string& assign(InputIterator first, InputIterator last);
|
||||
SPROUT_CXX14_CONSTEXPR void swap(basic_string& other) SPROUT_NOEXCEPT_EXPR(SPROUT_NOEXCEPT_EXPR(std::swap(std::declval<T&>(), std::declval<T&>())));
|
||||
|
||||
// string operations:
|
||||
SPROUT_CONSTEXPR const_pointer c_str() const SPROUT_NOEXCEPT;
|
||||
pointer data() SPROUT_NOEXCEPT;
|
||||
SPROUT_CXX14_CONSTEXPR pointer data() SPROUT_NOEXCEPT;
|
||||
SPROUT_CONSTEXPR const_pointer data() const SPROUT_NOEXCEPT;
|
||||
pointer c_array() SPROUT_NOEXCEPT;
|
||||
SPROUT_CXX14_CONSTEXPR pointer c_array() SPROUT_NOEXCEPT;
|
||||
SPROUT_CONSTEXPR const_pointer c_array() const SPROUT_NOEXCEPT;
|
||||
template<std::size_t N2>
|
||||
SPROUT_CONSTEXPR size_type find(basic_string<T, N2, Traits> const& str, size_type pos = 0) const SPROUT_NOEXCEPT;
|
||||
|
@ -357,17 +357,17 @@ Interface of all
|
|||
|
||||
// conversions:
|
||||
template<typename Allocator>
|
||||
SPROUT_EXPLICIT_CONVERSION operator std::basic_string<T, Traits, Allocator>() const;
|
||||
SPROUT_EXPLICIT_CONVERSION SPROUT_NON_CONSTEXPR operator std::basic_string<T, Traits, Allocator>() const;
|
||||
|
||||
// construct/copy/destroy (for string iterator):
|
||||
template<typename StringConstIterator>
|
||||
basic_string& operator=(StringConstIterator rhs);
|
||||
SPROUT_CXX14_CONSTEXPR basic_string& operator=(StringConstIterator rhs);
|
||||
|
||||
// modifiers (for string iterator):
|
||||
template<typename StringConstIterator>
|
||||
basic_string& assign(StringConstIterator s, size_type n);
|
||||
SPROUT_CXX14_CONSTEXPR basic_string& assign(StringConstIterator s, size_type n);
|
||||
template<typename StringConstIterator>
|
||||
basic_string& assign(StringConstIterator s);
|
||||
SPROUT_CXX14_CONSTEXPR basic_string& assign(StringConstIterator s);
|
||||
|
||||
// string operations (for string iterator):
|
||||
template<typename StringConstIterator>
|
||||
|
|
|
@ -8,7 +8,7 @@ Interface
|
|||
.. sourcecode:: c++
|
||||
|
||||
template<typename StringConstIterator>
|
||||
basic_string& operator=(StringConstIterator rhs);
|
||||
SPROUT_CXX14_CONSTEXPR basic_string& operator=(StringConstIterator rhs);
|
||||
|
||||
Requires
|
||||
========================================
|
||||
|
|
|
@ -7,12 +7,12 @@ Interface
|
|||
========================================
|
||||
.. sourcecode:: c++
|
||||
|
||||
basic_string& operator=(basic_string const& rhs);
|
||||
SPROUT_CXX14_CONSTEXPR basic_string& operator=(basic_string const& rhs);
|
||||
|
||||
template<std::size_t N2, typename Enable = typename std::enable_if<(N2 != N)>::type>
|
||||
basic_string& operator=(basic_string<T, N2, Traits> const& rhs);
|
||||
SPROUT_CXX14_CONSTEXPR basic_string& operator=(basic_string<T, N2, Traits> const& rhs);
|
||||
|
||||
basic_string& operator=(value_type const* rhs);
|
||||
SPROUT_CXX14_CONSTEXPR basic_string& operator=(value_type const* rhs);
|
||||
|
||||
Effects
|
||||
========================================
|
||||
|
|
|
@ -8,7 +8,7 @@ Interface
|
|||
.. sourcecode:: c++
|
||||
|
||||
template<typename Allocator>
|
||||
SPROUT_EXPLICIT_CONVERSION operator std::basic_string<T, Traits, Allocator>() const;
|
||||
SPROUT_EXPLICIT_CONVERSION SPROUT_NON_CONSTEXPR operator std::basic_string<T, Traits, Allocator>() const;
|
||||
|
||||
Returns
|
||||
========================================
|
||||
|
|
|
@ -7,7 +7,7 @@ Interface
|
|||
========================================
|
||||
.. sourcecode:: c++
|
||||
|
||||
reference operator[](size_type n);
|
||||
SPROUT_CXX14_CONSTEXPR reference operator[](size_type n);
|
||||
|
||||
SPROUT_CONSTEXPR const_reference operator[](size_type n) const;
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ Interface
|
|||
========================================
|
||||
.. sourcecode:: c++
|
||||
|
||||
reverse_iterator rbegin() SPROUT_NOEXCEPT;
|
||||
SPROUT_CXX14_CONSTEXPR reverse_iterator rbegin() SPROUT_NOEXCEPT;
|
||||
|
||||
SPROUT_CONSTEXPR const_reverse_iterator rbegin() const SPROUT_NOEXCEPT;
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ Interface
|
|||
========================================
|
||||
.. sourcecode:: c++
|
||||
|
||||
reverse_iterator rend() SPROUT_NOEXCEPT;
|
||||
SPROUT_CXX14_CONSTEXPR reverse_iterator rend() SPROUT_NOEXCEPT;
|
||||
|
||||
SPROUT_CONSTEXPR const_reverse_iterator rend() const SPROUT_NOEXCEPT;
|
||||
|
||||
|
|
|
@ -7,9 +7,9 @@ Interface
|
|||
========================================
|
||||
.. sourcecode:: c++
|
||||
|
||||
void resize(size_type n, value_type c);
|
||||
SPROUT_CXX14_CONSTEXPR void resize(size_type n, value_type c);
|
||||
|
||||
void resize(size_type n);
|
||||
SPROUT_CXX14_CONSTEXPR void resize(size_type n);
|
||||
|
||||
Requires
|
||||
========================================
|
||||
|
|
|
@ -8,7 +8,7 @@ Interface
|
|||
.. sourcecode:: c++
|
||||
|
||||
template<typename T, std::size_t N, typename Traits>
|
||||
inline void
|
||||
inline SPROUT_CXX14_CONSTEXPR void
|
||||
swap(sprout::basic_string<T, N, Traits>& lhs, sprout::basic_string<T, N, Traits>& rhs)
|
||||
SPROUT_NOEXCEPT_EXPR(SPROUT_NOEXCEPT_EXPR(lhs.swap(rhs)));
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ Interface
|
|||
========================================
|
||||
.. sourcecode:: c++
|
||||
|
||||
void swap(basic_string& s) SPROUT_NOEXCEPT_EXPR(SPROUT_NOEXCEPT_EXPR(std::swap(std::declval<T&>(), std::declval<T&>())));
|
||||
SPROUT_CXX14_CONSTEXPR void swap(basic_string& s) SPROUT_NOEXCEPT_EXPR(SPROUT_NOEXCEPT_EXPR(std::swap(std::declval<T&>(), std::declval<T&>())));
|
||||
|
||||
Postcondition
|
||||
========================================
|
||||
|
|
|
@ -8,7 +8,7 @@ Interface
|
|||
.. sourcecode:: c++
|
||||
|
||||
template<typename OutputIterator>
|
||||
static OutputIterator assign(OutputIterator s, std::size_t n, char_type a);
|
||||
static SPROUT_CXX14_CONSTEXPR OutputIterator assign(OutputIterator s, std::size_t n, char_type a);
|
||||
|
||||
Effects
|
||||
========================================
|
||||
|
|
|
@ -7,7 +7,7 @@ Interface
|
|||
========================================
|
||||
.. sourcecode:: c++
|
||||
|
||||
static char_type* assign(char_type* s, std::size_t n, char_type a);
|
||||
static SPROUT_CXX14_CONSTEXPR char_type* assign(char_type* s, std::size_t n, char_type a);
|
||||
|
||||
Effects
|
||||
========================================
|
||||
|
|
|
@ -7,7 +7,7 @@ Interface
|
|||
========================================
|
||||
.. sourcecode:: c++
|
||||
|
||||
static void assign(char_type& c1, char_type const& c2);
|
||||
static SPROUT_CXX14_CONSTEXPR void assign(char_type& c1, char_type const& c2);
|
||||
|
||||
Effects
|
||||
========================================
|
||||
|
|
|
@ -8,7 +8,7 @@ Interface
|
|||
.. sourcecode:: c++
|
||||
|
||||
template<typename OutputIterator, typename ConstInputIterator>
|
||||
static OutputIterator copy(OutputIterator s1, ConstInputIterator s2, std::size_t n);
|
||||
static SPROUT_CXX14_CONSTEXPR OutputIterator copy(OutputIterator s1, ConstInputIterator s2, std::size_t n);
|
||||
|
||||
Pre-condition
|
||||
========================================
|
||||
|
|
|
@ -7,7 +7,7 @@ Interface
|
|||
========================================
|
||||
.. sourcecode:: c++
|
||||
|
||||
static char_type* copy(char_type* s1, char_type const* s2, std::size_t n);
|
||||
static SPROUT_CXX14_CONSTEXPR char_type* copy(char_type* s1, char_type const* s2, std::size_t n);
|
||||
|
||||
Pre-condition
|
||||
========================================
|
||||
|
|
|
@ -126,7 +126,7 @@ Interface of all
|
|||
typedef typename std::char_traits<Char>::state_type state_type;
|
||||
|
||||
// character operations:
|
||||
static void assign(char_type& c1, char_type const& c2) SPROUT_NOEXCEPT;
|
||||
static SPROUT_CXX14_CONSTEXPR void assign(char_type& c1, char_type const& c2) SPROUT_NOEXCEPT;
|
||||
static SPROUT_CONSTEXPR bool eq(char_type c1, char_type c2) SPROUT_NOEXCEPT;
|
||||
static SPROUT_CONSTEXPR bool lt(char_type c1, char_type c2) SPROUT_NOEXCEPT;
|
||||
|
||||
|
@ -134,9 +134,9 @@ Interface of all
|
|||
static SPROUT_CONSTEXPR int compare(char_type const* s1, char_type const* s2, std::size_t n);
|
||||
static SPROUT_CONSTEXPR std::size_t length(char_type const* s);
|
||||
static SPROUT_CONSTEXPR char_type const* find(char_type const* s, std::size_t n, char_type const& a);
|
||||
static char_type* move(char_type* s1, char_type const* s2, std::size_t n);
|
||||
static char_type* copy(char_type* s1, char_type const* s2, std::size_t n);
|
||||
static char_type* assign(char_type* s, std::size_t n, char_type a);
|
||||
static SPROUT_CXX14_CONSTEXPR char_type* move(char_type* s1, char_type const* s2, std::size_t n);
|
||||
static SPROUT_CXX14_CONSTEXPR char_type* copy(char_type* s1, char_type const* s2, std::size_t n);
|
||||
static SPROUT_CXX14_CONSTEXPR char_type* assign(char_type* s, std::size_t n, char_type a);
|
||||
|
||||
// integer type operations:
|
||||
static SPROUT_CONSTEXPR int_type not_eof(int_type c) SPROUT_NOEXCEPT;
|
||||
|
@ -157,9 +157,9 @@ Interface of all
|
|||
template<typename ConstInputIterator>
|
||||
static SPROUT_CONSTEXPR ConstInputIterator find(ConstInputIterator s, std::size_t n, char_type const& a);
|
||||
template<typename OutputIterator, typename ConstInputIterator>
|
||||
static OutputIterator move(OutputIterator s1, ConstInputIterator s2, std::size_t n);
|
||||
static SPROUT_CXX14_CONSTEXPR OutputIterator move(OutputIterator s1, ConstInputIterator s2, std::size_t n);
|
||||
template<typename OutputIterator, typename ConstInputIterator>
|
||||
static OutputIterator copy(OutputIterator s1, ConstInputIterator s2, std::size_t n);
|
||||
static SPROUT_CXX14_CONSTEXPR OutputIterator copy(OutputIterator s1, ConstInputIterator s2, std::size_t n);
|
||||
template<typename OutputIterator>
|
||||
static OutputIterator assign(OutputIterator s, std::size_t n, char_type a);
|
||||
static SPROUT_CXX14_CONSTEXPR OutputIterator assign(OutputIterator s, std::size_t n, char_type a);
|
||||
};
|
||||
|
|
|
@ -8,7 +8,7 @@ Interface
|
|||
.. sourcecode:: c++
|
||||
|
||||
template<typename OutputIterator, typename ConstInputIterator>
|
||||
static OutputIterator move(OutputIterator s1, ConstInputIterator s2, std::size_t n);
|
||||
static SPROUT_CXX14_CONSTEXPR OutputIterator move(OutputIterator s1, ConstInputIterator s2, std::size_t n);
|
||||
|
||||
Effects
|
||||
========================================
|
||||
|
|
|
@ -7,7 +7,7 @@ Interface
|
|||
========================================
|
||||
.. sourcecode:: c++
|
||||
|
||||
static char_type* move(char_type* s1, char_type const* s2, std::size_t n);
|
||||
static SPROUT_CXX14_CONSTEXPR char_type* move(char_type* s1, char_type const* s2, std::size_t n);
|
||||
|
||||
Effects
|
||||
========================================
|
||||
|
|
|
@ -136,7 +136,7 @@
|
|||
<h2>Supported Compilers<a class="headerlink" href="#supported-compilers" title="Permalink to this headline">¶</a></h2>
|
||||
<p>Linux:</p>
|
||||
<ul class="simple">
|
||||
<li>GCC, C++11 mode: 4.7.0, 4.7.1, 4.7.2, 4.7.3, 4.8.0, 4.8.1</li>
|
||||
<li>GCC, C++11 mode: 4.7.0, 4.7.1, 4.7.2, 4.7.3, 4.8.0, 4.8.1, 4.8.2</li>
|
||||
<li>Clang, C++11 mode: 3.2, 3.3</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
@ -111,7 +111,7 @@
|
|||
<h1>assign<a class="headerlink" href="#assign" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="kt">void</span> <span class="n">assign</span><span class="p">(</span><span class="n">const_reference</span> <span class="n">value</span><span class="p">);</span>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="kt">void</span> <span class="n">assign</span><span class="p">(</span><span class="n">const_reference</span> <span class="n">value</span><span class="p">);</span>
|
||||
|
||||
<span class="n">SPROUT_CONSTEXPR</span> <span class="n">array</span> <span class="n">assign</span><span class="p">(</span><span class="n">const_reference</span> <span class="n">value</span><span class="p">)</span> <span class="k">const</span><span class="p">;</span>
|
||||
</pre></div>
|
||||
|
|
|
@ -111,7 +111,7 @@
|
|||
<h1>at<a class="headerlink" href="#at" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">reference</span> <span class="n">at</span><span class="p">(</span><span class="n">size_type</span> <span class="n">n</span><span class="p">);</span>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">reference</span> <span class="n">at</span><span class="p">(</span><span class="n">size_type</span> <span class="n">n</span><span class="p">);</span>
|
||||
|
||||
<span class="n">SPROUT_CONSTEXPR</span> <span class="n">const_reference</span> <span class="n">at</span><span class="p">(</span><span class="n">size_type</span> <span class="n">n</span><span class="p">)</span> <span class="k">const</span><span class="p">;</span>
|
||||
</pre></div>
|
||||
|
|
|
@ -110,7 +110,7 @@
|
|||
<h1>back<a class="headerlink" href="#back" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">reference</span> <span class="n">back</span><span class="p">();</span>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">reference</span> <span class="n">back</span><span class="p">();</span>
|
||||
|
||||
<span class="n">SPROUT_CONSTEXPR</span> <span class="n">const_reference</span> <span class="n">back</span><span class="p">()</span> <span class="k">const</span><span class="p">;</span>
|
||||
</pre></div>
|
||||
|
|
|
@ -110,7 +110,7 @@
|
|||
<h1>begin<a class="headerlink" href="#begin" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">iterator</span> <span class="n">begin</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">iterator</span> <span class="n">begin</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
|
||||
<span class="n">SPROUT_CONSTEXPR</span> <span class="n">const_iterator</span> <span class="n">begin</span><span class="p">()</span> <span class="k">const</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
</pre></div>
|
||||
|
|
|
@ -110,7 +110,7 @@
|
|||
<h1>c_array<a class="headerlink" href="#c-array" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">pointer</span> <span class="n">c_array</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">pointer</span> <span class="n">c_array</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
|
||||
<span class="n">SPROUT_CONSTEXPR</span> <span class="n">const_pointer</span> <span class="n">c_array</span><span class="p">()</span> <span class="k">const</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
</pre></div>
|
||||
|
|
|
@ -110,7 +110,7 @@
|
|||
<h1>data<a class="headerlink" href="#data" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">pointer</span> <span class="n">data</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">pointer</span> <span class="n">data</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
|
||||
<span class="n">SPROUT_CONSTEXPR</span> <span class="n">const_pointer</span> <span class="n">data</span><span class="p">()</span> <span class="k">const</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
</pre></div>
|
||||
|
|
|
@ -110,7 +110,7 @@
|
|||
<h1>end<a class="headerlink" href="#end" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">iterator</span> <span class="n">end</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">iterator</span> <span class="n">end</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
|
||||
<span class="n">SPROUT_CONSTEXPR</span> <span class="n">const_iterator</span> <span class="n">end</span><span class="p">()</span> <span class="k">const</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
</pre></div>
|
||||
|
|
|
@ -111,7 +111,7 @@
|
|||
<h1>fill<a class="headerlink" href="#fill" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="kt">void</span> <span class="n">fill</span><span class="p">(</span><span class="n">const_reference</span> <span class="n">value</span><span class="p">);</span>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="kt">void</span> <span class="n">fill</span><span class="p">(</span><span class="n">const_reference</span> <span class="n">value</span><span class="p">);</span>
|
||||
|
||||
<span class="n">SPROUT_CONSTEXPR</span> <span class="n">array</span> <span class="n">fill</span><span class="p">(</span><span class="n">const_reference</span> <span class="n">value</span><span class="p">)</span> <span class="k">const</span><span class="p">;</span>
|
||||
</pre></div>
|
||||
|
|
|
@ -110,7 +110,7 @@
|
|||
<h1>front<a class="headerlink" href="#front" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">reference</span> <span class="n">front</span><span class="p">();</span>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">reference</span> <span class="n">front</span><span class="p">();</span>
|
||||
|
||||
<span class="n">SPROUT_CONSTEXPR</span> <span class="n">const_reference</span> <span class="n">front</span><span class="p">()</span> <span class="k">const</span><span class="p">;</span>
|
||||
</pre></div>
|
||||
|
|
|
@ -389,25 +389,25 @@ convertible to pointer</td>
|
|||
|
||||
<span class="c1">// construct/copy/destroy:</span>
|
||||
<span class="k">template</span><span class="o"><</span><span class="k">typename</span> <span class="n">T2</span><span class="o">></span>
|
||||
<span class="n">array</span><span class="o">&</span> <span class="k">operator</span><span class="o">=</span><span class="p">(</span><span class="n">array</span><span class="o"><</span><span class="n">T2</span><span class="p">,</span> <span class="n">N</span><span class="o">></span> <span class="k">const</span><span class="o">&</span> <span class="n">rhs</span><span class="p">);</span>
|
||||
<span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">array</span><span class="o">&</span> <span class="k">operator</span><span class="o">=</span><span class="p">(</span><span class="n">array</span><span class="o"><</span><span class="n">T2</span><span class="p">,</span> <span class="n">N</span><span class="o">></span> <span class="k">const</span><span class="o">&</span> <span class="n">rhs</span><span class="p">);</span>
|
||||
<span class="k">template</span><span class="o"><</span><span class="k">typename</span> <span class="n">T2</span><span class="o">></span>
|
||||
<span class="n">array</span><span class="o">&</span> <span class="k">operator</span><span class="o">=</span><span class="p">(</span><span class="n">array</span><span class="o"><</span><span class="n">T2</span><span class="p">,</span> <span class="n">N</span><span class="o">>&&</span> <span class="n">rhs</span><span class="p">);</span>
|
||||
<span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">array</span><span class="o">&</span> <span class="k">operator</span><span class="o">=</span><span class="p">(</span><span class="n">array</span><span class="o"><</span><span class="n">T2</span><span class="p">,</span> <span class="n">N</span><span class="o">>&&</span> <span class="n">rhs</span><span class="p">);</span>
|
||||
|
||||
<span class="c1">// modifiers:</span>
|
||||
<span class="kt">void</span> <span class="n">fill</span><span class="p">(</span><span class="n">const_reference</span> <span class="n">value</span><span class="p">);</span>
|
||||
<span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="kt">void</span> <span class="n">fill</span><span class="p">(</span><span class="n">const_reference</span> <span class="n">value</span><span class="p">);</span>
|
||||
<span class="n">SPROUT_CONSTEXPR</span> <span class="n">array</span> <span class="n">fill</span><span class="p">(</span><span class="n">const_reference</span> <span class="n">value</span><span class="p">)</span> <span class="k">const</span><span class="p">;</span>
|
||||
<span class="kt">void</span> <span class="n">assign</span><span class="p">(</span><span class="n">const_reference</span> <span class="n">value</span><span class="p">);</span>
|
||||
<span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="kt">void</span> <span class="n">assign</span><span class="p">(</span><span class="n">const_reference</span> <span class="n">value</span><span class="p">);</span>
|
||||
<span class="n">SPROUT_CONSTEXPR</span> <span class="n">array</span> <span class="n">assign</span><span class="p">(</span><span class="n">const_reference</span> <span class="n">value</span><span class="p">)</span> <span class="k">const</span><span class="p">;</span>
|
||||
<span class="kt">void</span> <span class="n">swap</span><span class="p">(</span><span class="n">array</span><span class="o">&</span><span class="p">)</span> <span class="n">SPROUT_NOEXCEPT_EXPR</span><span class="p">(</span><span class="n">SPROUT_NOEXCEPT_EXPR</span><span class="p">(</span><span class="n">std</span><span class="o">::</span><span class="n">swap</span><span class="p">(</span><span class="n">std</span><span class="o">::</span><span class="n">declval</span><span class="o"><</span><span class="n">T</span><span class="o">&></span><span class="p">(),</span> <span class="n">std</span><span class="o">::</span><span class="n">declval</span><span class="o"><</span><span class="n">T</span><span class="o">&></span><span class="p">())));</span>
|
||||
<span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="kt">void</span> <span class="n">swap</span><span class="p">(</span><span class="n">array</span><span class="o">&</span><span class="p">)</span> <span class="n">SPROUT_NOEXCEPT_EXPR</span><span class="p">(</span><span class="n">SPROUT_NOEXCEPT_EXPR</span><span class="p">(</span><span class="n">std</span><span class="o">::</span><span class="n">swap</span><span class="p">(</span><span class="n">std</span><span class="o">::</span><span class="n">declval</span><span class="o"><</span><span class="n">T</span><span class="o">&></span><span class="p">(),</span> <span class="n">std</span><span class="o">::</span><span class="n">declval</span><span class="o"><</span><span class="n">T</span><span class="o">&></span><span class="p">())));</span>
|
||||
|
||||
<span class="c1">// iterators:</span>
|
||||
<span class="n">iterator</span> <span class="n">begin</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">iterator</span> <span class="n">begin</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<span class="n">SPROUT_CONSTEXPR</span> <span class="n">const_iterator</span> <span class="n">begin</span><span class="p">()</span> <span class="k">const</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<span class="n">iterator</span> <span class="n">end</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">iterator</span> <span class="n">end</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<span class="n">SPROUT_CONSTEXPR</span> <span class="n">const_iterator</span> <span class="n">end</span><span class="p">()</span> <span class="k">const</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<span class="n">reverse_iterator</span> <span class="n">rbegin</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">reverse_iterator</span> <span class="n">rbegin</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<span class="n">SPROUT_CONSTEXPR</span> <span class="n">const_reverse_iterator</span> <span class="n">rbegin</span><span class="p">()</span> <span class="k">const</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<span class="n">reverse_iterator</span> <span class="n">rend</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">reverse_iterator</span> <span class="n">rend</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<span class="n">SPROUT_CONSTEXPR</span> <span class="n">const_reverse_iterator</span> <span class="n">rend</span><span class="p">()</span> <span class="k">const</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<span class="n">SPROUT_CONSTEXPR</span> <span class="n">const_iterator</span> <span class="n">cbegin</span><span class="p">()</span> <span class="k">const</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<span class="n">SPROUT_CONSTEXPR</span> <span class="n">const_iterator</span> <span class="n">cend</span><span class="p">()</span> <span class="k">const</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
|
@ -420,17 +420,17 @@ convertible to pointer</td>
|
|||
<span class="n">SPROUT_CONSTEXPR</span> <span class="kt">bool</span> <span class="n">empty</span><span class="p">()</span> <span class="k">const</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
|
||||
<span class="c1">// element access:</span>
|
||||
<span class="n">reference</span> <span class="k">operator</span><span class="p">[](</span><span class="n">size_type</span> <span class="n">n</span><span class="p">);</span>
|
||||
<span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">reference</span> <span class="k">operator</span><span class="p">[](</span><span class="n">size_type</span> <span class="n">n</span><span class="p">);</span>
|
||||
<span class="n">SPROUT_CONSTEXPR</span> <span class="n">const_reference</span> <span class="k">operator</span><span class="p">[](</span><span class="n">size_type</span> <span class="n">n</span><span class="p">)</span> <span class="k">const</span><span class="p">;</span>
|
||||
<span class="n">reference</span> <span class="n">at</span><span class="p">(</span><span class="n">size_type</span> <span class="n">n</span><span class="p">);</span>
|
||||
<span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">reference</span> <span class="n">at</span><span class="p">(</span><span class="n">size_type</span> <span class="n">n</span><span class="p">);</span>
|
||||
<span class="n">SPROUT_CONSTEXPR</span> <span class="n">const_reference</span> <span class="n">at</span><span class="p">(</span><span class="n">size_type</span> <span class="n">n</span><span class="p">)</span> <span class="k">const</span><span class="p">;</span>
|
||||
<span class="n">reference</span> <span class="n">front</span><span class="p">();</span>
|
||||
<span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">reference</span> <span class="n">front</span><span class="p">();</span>
|
||||
<span class="n">SPROUT_CONSTEXPR</span> <span class="n">const_reference</span> <span class="n">front</span><span class="p">()</span> <span class="k">const</span><span class="p">;</span>
|
||||
<span class="n">reference</span> <span class="n">back</span><span class="p">();</span>
|
||||
<span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">reference</span> <span class="n">back</span><span class="p">();</span>
|
||||
<span class="n">SPROUT_CONSTEXPR</span> <span class="n">const_reference</span> <span class="n">back</span><span class="p">()</span> <span class="k">const</span><span class="p">;</span>
|
||||
<span class="n">pointer</span> <span class="n">data</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">pointer</span> <span class="n">data</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<span class="n">SPROUT_CONSTEXPR</span> <span class="n">const_pointer</span> <span class="n">data</span><span class="p">()</span> <span class="k">const</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<span class="n">pointer</span> <span class="n">c_array</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">pointer</span> <span class="n">c_array</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<span class="n">SPROUT_CONSTEXPR</span> <span class="n">const_pointer</span> <span class="n">c_array</span><span class="p">()</span> <span class="k">const</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<span class="p">};</span>
|
||||
</pre></div>
|
||||
|
|
|
@ -111,10 +111,10 @@
|
|||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="k">template</span><span class="o"><</span><span class="k">typename</span> <span class="n">T2</span><span class="o">></span>
|
||||
<span class="n">array</span><span class="o">&</span> <span class="k">operator</span><span class="o">=</span><span class="p">(</span><span class="n">array</span><span class="o"><</span><span class="n">T2</span><span class="p">,</span> <span class="n">N</span><span class="o">></span> <span class="k">const</span><span class="o">&</span> <span class="n">rhs</span><span class="p">);</span>
|
||||
<span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">array</span><span class="o">&</span> <span class="k">operator</span><span class="o">=</span><span class="p">(</span><span class="n">array</span><span class="o"><</span><span class="n">T2</span><span class="p">,</span> <span class="n">N</span><span class="o">></span> <span class="k">const</span><span class="o">&</span> <span class="n">rhs</span><span class="p">);</span>
|
||||
|
||||
<span class="k">template</span><span class="o"><</span><span class="k">typename</span> <span class="n">T2</span><span class="o">></span>
|
||||
<span class="n">array</span><span class="o">&</span> <span class="k">operator</span><span class="o">=</span><span class="p">(</span><span class="n">array</span><span class="o"><</span><span class="n">T2</span><span class="p">,</span> <span class="n">N</span><span class="o">>&&</span> <span class="n">rhs</span><span class="p">);</span>
|
||||
<span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">array</span><span class="o">&</span> <span class="k">operator</span><span class="o">=</span><span class="p">(</span><span class="n">array</span><span class="o"><</span><span class="n">T2</span><span class="p">,</span> <span class="n">N</span><span class="o">>&&</span> <span class="n">rhs</span><span class="p">);</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -111,7 +111,7 @@
|
|||
<h1>operator[]<a class="headerlink" href="#operator" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">reference</span> <span class="k">operator</span><span class="p">[](</span><span class="n">size_type</span> <span class="n">n</span><span class="p">);</span>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">reference</span> <span class="k">operator</span><span class="p">[](</span><span class="n">size_type</span> <span class="n">n</span><span class="p">);</span>
|
||||
|
||||
<span class="n">SPROUT_CONSTEXPR</span> <span class="n">const_reference</span> <span class="k">operator</span><span class="p">[](</span><span class="n">size_type</span> <span class="n">n</span><span class="p">)</span> <span class="k">const</span><span class="p">;</span>
|
||||
</pre></div>
|
||||
|
|
|
@ -110,7 +110,7 @@
|
|||
<h1>rbegin<a class="headerlink" href="#rbegin" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">reverse_iterator</span> <span class="n">rbegin</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">reverse_iterator</span> <span class="n">rbegin</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
|
||||
<span class="n">SPROUT_CONSTEXPR</span> <span class="n">const_reverse_iterator</span> <span class="n">rbegin</span><span class="p">()</span> <span class="k">const</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
</pre></div>
|
||||
|
|
|
@ -110,7 +110,7 @@
|
|||
<h1>rend<a class="headerlink" href="#rend" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">reverse_iterator</span> <span class="n">rend</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">reverse_iterator</span> <span class="n">rend</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
|
||||
<span class="n">SPROUT_CONSTEXPR</span> <span class="n">const_reverse_iterator</span> <span class="n">rend</span><span class="p">()</span> <span class="k">const</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
</pre></div>
|
||||
|
|
|
@ -111,7 +111,7 @@
|
|||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="k">template</span><span class="o"><</span><span class="k">typename</span> <span class="n">T</span><span class="p">,</span> <span class="n">std</span><span class="o">::</span><span class="n">size_t</span> <span class="n">N</span><span class="o">></span>
|
||||
<span class="kr">inline</span> <span class="kt">void</span>
|
||||
<span class="kr">inline</span> <span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="kt">void</span>
|
||||
<span class="n">swap</span><span class="p">(</span><span class="n">sprout</span><span class="o">::</span><span class="n">array</span><span class="o"><</span><span class="n">T</span><span class="p">,</span> <span class="n">N</span><span class="o">>&</span> <span class="n">lhs</span><span class="p">,</span> <span class="n">sprout</span><span class="o">::</span><span class="n">array</span><span class="o"><</span><span class="n">T</span><span class="p">,</span> <span class="n">N</span><span class="o">>&</span> <span class="n">rhs</span><span class="p">)</span>
|
||||
<span class="n">SPROUT_NOEXCEPT_EXPR</span><span class="p">(</span><span class="n">SPROUT_NOEXCEPT_EXPR</span><span class="p">(</span><span class="n">lhs</span><span class="p">.</span><span class="n">swap</span><span class="p">(</span><span class="n">rhs</span><span class="p">)));</span>
|
||||
</pre></div>
|
||||
|
|
|
@ -111,7 +111,7 @@
|
|||
<h1>swap<a class="headerlink" href="#swap" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="kt">void</span> <span class="n">swap</span><span class="p">(</span><span class="n">array</span><span class="o">&</span> <span class="n">other</span><span class="p">)</span> <span class="n">SPROUT_NOEXCEPT_EXPR</span><span class="p">(</span><span class="n">SPROUT_NOEXCEPT_EXPR</span><span class="p">(</span><span class="n">std</span><span class="o">::</span><span class="n">swap</span><span class="p">(</span><span class="n">std</span><span class="o">::</span><span class="n">declval</span><span class="o"><</span><span class="n">T</span><span class="o">&></span><span class="p">(),</span> <span class="n">std</span><span class="o">::</span><span class="n">declval</span><span class="o"><</span><span class="n">T</span><span class="o">&></span><span class="p">())));</span>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="kt">void</span> <span class="n">swap</span><span class="p">(</span><span class="n">array</span><span class="o">&</span> <span class="n">other</span><span class="p">)</span> <span class="n">SPROUT_NOEXCEPT_EXPR</span><span class="p">(</span><span class="n">SPROUT_NOEXCEPT_EXPR</span><span class="p">(</span><span class="n">std</span><span class="o">::</span><span class="n">swap</span><span class="p">(</span><span class="n">std</span><span class="o">::</span><span class="n">declval</span><span class="o"><</span><span class="n">T</span><span class="o">&></span><span class="p">(),</span> <span class="n">std</span><span class="o">::</span><span class="n">declval</span><span class="o"><</span><span class="n">T</span><span class="o">&></span><span class="p">())));</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -117,7 +117,7 @@
|
|||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="k">template</span><span class="o"><</span><span class="k">typename</span> <span class="n">StringConstIterator</span><span class="o">></span>
|
||||
<span class="n">basic_string</span><span class="o">&</span> <span class="n">assign</span><span class="p">(</span><span class="n">StringConstIterator</span> <span class="n">s</span><span class="p">,</span> <span class="n">size_type</span> <span class="n">n</span><span class="p">);</span>
|
||||
<span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">basic_string</span><span class="o">&</span> <span class="n">assign</span><span class="p">(</span><span class="n">StringConstIterator</span> <span class="n">s</span><span class="p">,</span> <span class="n">size_type</span> <span class="n">n</span><span class="p">);</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -131,7 +131,7 @@
|
|||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="k">template</span><span class="o"><</span><span class="n">std</span><span class="o">::</span><span class="n">size_t</span> <span class="n">N2</span><span class="o">></span>
|
||||
<span class="n">basic_string</span><span class="o">&</span> <span class="n">assign</span><span class="p">(</span><span class="n">basic_string</span><span class="o"><</span><span class="n">T</span><span class="p">,</span> <span class="n">N2</span><span class="p">,</span> <span class="n">Traits</span><span class="o">></span> <span class="k">const</span><span class="o">&</span> <span class="n">str</span><span class="p">);</span>
|
||||
<span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">basic_string</span><span class="o">&</span> <span class="n">assign</span><span class="p">(</span><span class="n">basic_string</span><span class="o"><</span><span class="n">T</span><span class="p">,</span> <span class="n">N2</span><span class="p">,</span> <span class="n">Traits</span><span class="o">></span> <span class="k">const</span><span class="o">&</span> <span class="n">str</span><span class="p">);</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -111,7 +111,7 @@
|
|||
<h1>at<a class="headerlink" href="#at" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">reference</span> <span class="n">at</span><span class="p">(</span><span class="n">size_type</span> <span class="n">n</span><span class="p">);</span>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">reference</span> <span class="n">at</span><span class="p">(</span><span class="n">size_type</span> <span class="n">n</span><span class="p">);</span>
|
||||
|
||||
<span class="n">SPROUT_CONSTEXPR</span> <span class="n">const_reference</span> <span class="n">at</span><span class="p">(</span><span class="n">size_type</span> <span class="n">n</span><span class="p">)</span> <span class="k">const</span><span class="p">;</span>
|
||||
</pre></div>
|
||||
|
|
|
@ -110,7 +110,7 @@
|
|||
<h1>back<a class="headerlink" href="#back" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">reference</span> <span class="n">back</span><span class="p">();</span>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">reference</span> <span class="n">back</span><span class="p">();</span>
|
||||
|
||||
<span class="n">SPROUT_CONSTEXPR</span> <span class="n">const_reference</span> <span class="n">back</span><span class="p">()</span> <span class="k">const</span><span class="p">;</span>
|
||||
</pre></div>
|
||||
|
|
|
@ -110,7 +110,7 @@
|
|||
<h1>begin<a class="headerlink" href="#begin" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">iterator</span> <span class="n">begin</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">iterator</span> <span class="n">begin</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
|
||||
<span class="n">SPROUT_CONSTEXPR</span> <span class="n">const_iterator</span> <span class="n">begin</span><span class="p">()</span> <span class="k">const</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
</pre></div>
|
||||
|
|
|
@ -110,7 +110,7 @@
|
|||
<h1>back<a class="headerlink" href="#back" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">pointer</span> <span class="n">c_array</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">pointer</span> <span class="n">c_array</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
|
||||
<span class="n">SPROUT_CONSTEXPR</span> <span class="n">const_pointer</span> <span class="n">c_array</span><span class="p">()</span> <span class="k">const</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
</pre></div>
|
||||
|
|
|
@ -109,7 +109,7 @@
|
|||
<h1>clear<a class="headerlink" href="#clear" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="kt">void</span> <span class="n">clear</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="kt">void</span> <span class="n">clear</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -478,7 +478,7 @@
|
|||
<hr class="docutils" />
|
||||
<div class="section" id="id39">
|
||||
<h2>Interface<a class="headerlink" href="#id39" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">basic_string</span><span class="p">(</span><span class="n">std</span><span class="o">::</span><span class="n">initializer_list</span><span class="o"><</span><span class="n">value_type</span><span class="o">></span> <span class="n">il</span><span class="p">);</span>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">SPROUT_INITIALIZER_LIST_CONSTEXPR</span> <span class="n">basic_string</span><span class="p">(</span><span class="n">std</span><span class="o">::</span><span class="n">initializer_list</span><span class="o"><</span><span class="n">value_type</span><span class="o">></span> <span class="n">il</span><span class="p">);</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -110,7 +110,7 @@
|
|||
<h1>back<a class="headerlink" href="#back" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">pointer</span> <span class="n">data</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">pointer</span> <span class="n">data</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
|
||||
<span class="n">SPROUT_CONSTEXPR</span> <span class="n">const_pointer</span> <span class="n">data</span><span class="p">()</span> <span class="k">const</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
</pre></div>
|
||||
|
|
|
@ -110,7 +110,7 @@
|
|||
<h1>end<a class="headerlink" href="#end" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">iterator</span> <span class="n">end</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">iterator</span> <span class="n">end</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
|
||||
<span class="n">SPROUT_CONSTEXPR</span> <span class="n">const_iterator</span> <span class="n">end</span><span class="p">()</span> <span class="k">const</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
</pre></div>
|
||||
|
|
|
@ -110,7 +110,7 @@
|
|||
<h1>front<a class="headerlink" href="#front" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">reference</span> <span class="n">front</span><span class="p">();</span>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">reference</span> <span class="n">front</span><span class="p">();</span>
|
||||
|
||||
<span class="n">SPROUT_CONSTEXPR</span> <span class="n">const_reference</span> <span class="n">front</span><span class="p">()</span> <span class="k">const</span><span class="p">;</span>
|
||||
</pre></div>
|
||||
|
|
|
@ -536,21 +536,21 @@ convertible to pointer</td>
|
|||
<span class="n">SPROUT_CONSTEXPR</span> <span class="n">basic_string</span><span class="p">(</span><span class="n">size_type</span> <span class="n">n</span><span class="p">,</span> <span class="n">value_type</span> <span class="n">c</span><span class="p">);</span>
|
||||
<span class="k">template</span><span class="o"><</span><span class="k">typename</span> <span class="n">InputIterator</span><span class="o">></span>
|
||||
<span class="n">SPROUT_CONSTEXPR</span> <span class="n">basic_string</span><span class="p">(</span><span class="n">InputIterator</span> <span class="n">first</span><span class="p">,</span> <span class="n">InputIterator</span> <span class="n">last</span><span class="p">);</span>
|
||||
<span class="n">basic_string</span><span class="p">(</span><span class="n">std</span><span class="o">::</span><span class="n">initializer_list</span><span class="o"><</span><span class="n">value_type</span><span class="o">></span> <span class="n">il</span><span class="p">);</span>
|
||||
<span class="n">basic_string</span><span class="o">&</span> <span class="k">operator</span><span class="o">=</span><span class="p">(</span><span class="n">basic_string</span> <span class="k">const</span><span class="o">&</span> <span class="n">rhs</span><span class="p">);</span>
|
||||
<span class="n">SPROUT_INITIALIZER_LIST_CONSTEXPR</span> <span class="n">basic_string</span><span class="p">(</span><span class="n">std</span><span class="o">::</span><span class="n">initializer_list</span><span class="o"><</span><span class="n">value_type</span><span class="o">></span> <span class="n">il</span><span class="p">);</span>
|
||||
<span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">basic_string</span><span class="o">&</span> <span class="k">operator</span><span class="o">=</span><span class="p">(</span><span class="n">basic_string</span> <span class="k">const</span><span class="o">&</span> <span class="n">rhs</span><span class="p">);</span>
|
||||
<span class="k">template</span><span class="o"><</span><span class="n">std</span><span class="o">::</span><span class="n">size_t</span> <span class="n">N2</span><span class="p">,</span> <span class="k">typename</span> <span class="n">Enable</span> <span class="o">=</span> <span class="k">typename</span> <span class="n">std</span><span class="o">::</span><span class="n">enable_if</span><span class="o"><</span><span class="p">(</span><span class="n">N2</span> <span class="o">!=</span> <span class="n">N</span><span class="p">)</span><span class="o">>::</span><span class="n">type</span><span class="o">></span>
|
||||
<span class="n">basic_string</span><span class="o">&</span> <span class="k">operator</span><span class="o">=</span><span class="p">(</span><span class="n">basic_string</span><span class="o"><</span><span class="n">T</span><span class="p">,</span> <span class="n">N2</span><span class="p">,</span> <span class="n">Traits</span><span class="o">></span> <span class="k">const</span><span class="o">&</span> <span class="n">rhs</span><span class="p">);</span>
|
||||
<span class="n">basic_string</span><span class="o">&</span> <span class="k">operator</span><span class="o">=</span><span class="p">(</span><span class="n">value_type</span> <span class="k">const</span><span class="o">*</span> <span class="n">rhs</span><span class="p">);</span>
|
||||
<span class="n">basic_string</span><span class="o">&</span> <span class="k">operator</span><span class="o">=</span><span class="p">(</span><span class="n">value_type</span> <span class="n">rhs</span><span class="p">);</span>
|
||||
<span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">basic_string</span><span class="o">&</span> <span class="k">operator</span><span class="o">=</span><span class="p">(</span><span class="n">basic_string</span><span class="o"><</span><span class="n">T</span><span class="p">,</span> <span class="n">N2</span><span class="p">,</span> <span class="n">Traits</span><span class="o">></span> <span class="k">const</span><span class="o">&</span> <span class="n">rhs</span><span class="p">);</span>
|
||||
<span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">basic_string</span><span class="o">&</span> <span class="k">operator</span><span class="o">=</span><span class="p">(</span><span class="n">value_type</span> <span class="k">const</span><span class="o">*</span> <span class="n">rhs</span><span class="p">);</span>
|
||||
<span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">basic_string</span><span class="o">&</span> <span class="k">operator</span><span class="o">=</span><span class="p">(</span><span class="n">value_type</span> <span class="n">rhs</span><span class="p">);</span>
|
||||
|
||||
<span class="c1">// iterators:</span>
|
||||
<span class="n">iterator</span> <span class="n">begin</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">iterator</span> <span class="n">begin</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<span class="n">SPROUT_CONSTEXPR</span> <span class="n">const_iterator</span> <span class="n">begin</span><span class="p">()</span> <span class="k">const</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<span class="n">iterator</span> <span class="n">end</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">iterator</span> <span class="n">end</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<span class="n">SPROUT_CONSTEXPR</span> <span class="n">const_iterator</span> <span class="n">end</span><span class="p">()</span> <span class="k">const</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<span class="n">reverse_iterator</span> <span class="n">rbegin</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">reverse_iterator</span> <span class="n">rbegin</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<span class="n">SPROUT_CONSTEXPR</span> <span class="n">const_reverse_iterator</span> <span class="n">rbegin</span><span class="p">()</span> <span class="k">const</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<span class="n">reverse_iterator</span> <span class="n">rend</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">reverse_iterator</span> <span class="n">rend</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<span class="n">SPROUT_CONSTEXPR</span> <span class="n">const_reverse_iterator</span> <span class="n">rend</span><span class="p">()</span> <span class="k">const</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<span class="n">SPROUT_CONSTEXPR</span> <span class="n">const_iterator</span> <span class="n">cbegin</span><span class="p">()</span> <span class="k">const</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<span class="n">SPROUT_CONSTEXPR</span> <span class="n">const_iterator</span> <span class="n">cend</span><span class="p">()</span> <span class="k">const</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
|
@ -561,38 +561,38 @@ convertible to pointer</td>
|
|||
<span class="n">SPROUT_CONSTEXPR</span> <span class="n">size_type</span> <span class="n">size</span><span class="p">()</span> <span class="k">const</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<span class="n">SPROUT_CONSTEXPR</span> <span class="n">size_type</span> <span class="n">length</span><span class="p">()</span> <span class="k">const</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<span class="n">SPROUT_CONSTEXPR</span> <span class="n">size_type</span> <span class="n">max_size</span><span class="p">()</span> <span class="k">const</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<span class="kt">void</span> <span class="n">resize</span><span class="p">(</span><span class="n">size_type</span> <span class="n">n</span><span class="p">,</span> <span class="n">value_type</span> <span class="n">c</span><span class="p">);</span>
|
||||
<span class="kt">void</span> <span class="n">resize</span><span class="p">(</span><span class="n">size_type</span> <span class="n">n</span><span class="p">);</span>
|
||||
<span class="kt">void</span> <span class="n">clear</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="kt">void</span> <span class="n">resize</span><span class="p">(</span><span class="n">size_type</span> <span class="n">n</span><span class="p">,</span> <span class="n">value_type</span> <span class="n">c</span><span class="p">);</span>
|
||||
<span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="kt">void</span> <span class="n">resize</span><span class="p">(</span><span class="n">size_type</span> <span class="n">n</span><span class="p">);</span>
|
||||
<span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="kt">void</span> <span class="n">clear</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<span class="n">SPROUT_CONSTEXPR</span> <span class="kt">bool</span> <span class="n">empty</span><span class="p">()</span> <span class="k">const</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
|
||||
<span class="c1">// element access:</span>
|
||||
<span class="n">reference</span> <span class="k">operator</span><span class="p">[](</span><span class="n">size_type</span> <span class="n">i</span><span class="p">);</span>
|
||||
<span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">reference</span> <span class="k">operator</span><span class="p">[](</span><span class="n">size_type</span> <span class="n">i</span><span class="p">);</span>
|
||||
<span class="n">SPROUT_CONSTEXPR</span> <span class="n">const_reference</span> <span class="k">operator</span><span class="p">[](</span><span class="n">size_type</span> <span class="n">i</span><span class="p">)</span> <span class="k">const</span><span class="p">;</span>
|
||||
<span class="n">reference</span> <span class="n">at</span><span class="p">(</span><span class="n">size_type</span> <span class="n">i</span><span class="p">);</span>
|
||||
<span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">reference</span> <span class="n">at</span><span class="p">(</span><span class="n">size_type</span> <span class="n">i</span><span class="p">);</span>
|
||||
<span class="n">SPROUT_CONSTEXPR</span> <span class="n">const_reference</span> <span class="n">at</span><span class="p">(</span><span class="n">size_type</span> <span class="n">i</span><span class="p">)</span> <span class="k">const</span><span class="p">;</span>
|
||||
<span class="n">reference</span> <span class="n">front</span><span class="p">();</span>
|
||||
<span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">reference</span> <span class="n">front</span><span class="p">();</span>
|
||||
<span class="n">SPROUT_CONSTEXPR</span> <span class="n">const_reference</span> <span class="n">front</span><span class="p">()</span> <span class="k">const</span><span class="p">;</span>
|
||||
<span class="n">reference</span> <span class="n">back</span><span class="p">();</span>
|
||||
<span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">reference</span> <span class="n">back</span><span class="p">();</span>
|
||||
<span class="n">SPROUT_CONSTEXPR</span> <span class="n">const_reference</span> <span class="n">back</span><span class="p">()</span> <span class="k">const</span><span class="p">;</span>
|
||||
|
||||
<span class="c1">// modifiers:</span>
|
||||
<span class="k">template</span><span class="o"><</span><span class="n">std</span><span class="o">::</span><span class="n">size_t</span> <span class="n">N2</span><span class="o">></span>
|
||||
<span class="n">basic_string</span><span class="o">&</span> <span class="n">assign</span><span class="p">(</span><span class="n">basic_string</span><span class="o"><</span><span class="n">T</span><span class="p">,</span> <span class="n">N2</span><span class="p">,</span> <span class="n">Traits</span><span class="o">></span> <span class="k">const</span><span class="o">&</span> <span class="n">str</span><span class="p">);</span>
|
||||
<span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">basic_string</span><span class="o">&</span> <span class="n">assign</span><span class="p">(</span><span class="n">basic_string</span><span class="o"><</span><span class="n">T</span><span class="p">,</span> <span class="n">N2</span><span class="p">,</span> <span class="n">Traits</span><span class="o">></span> <span class="k">const</span><span class="o">&</span> <span class="n">str</span><span class="p">);</span>
|
||||
<span class="k">template</span><span class="o"><</span><span class="n">std</span><span class="o">::</span><span class="n">size_t</span> <span class="n">N2</span><span class="o">></span>
|
||||
<span class="n">basic_string</span><span class="o">&</span> <span class="n">assign</span><span class="p">(</span><span class="n">basic_string</span><span class="o"><</span><span class="n">T</span><span class="p">,</span> <span class="n">N2</span><span class="p">,</span> <span class="n">Traits</span><span class="o">></span> <span class="k">const</span><span class="o">&</span> <span class="n">str</span><span class="p">,</span> <span class="n">size_type</span> <span class="n">pos</span><span class="p">,</span> <span class="n">size_type</span> <span class="n">n</span><span class="p">);</span>
|
||||
<span class="n">basic_string</span><span class="o">&</span> <span class="n">assign</span><span class="p">(</span><span class="n">value_type</span> <span class="k">const</span><span class="o">*</span> <span class="n">s</span><span class="p">,</span> <span class="n">size_type</span> <span class="n">n</span><span class="p">);</span>
|
||||
<span class="n">basic_string</span><span class="o">&</span> <span class="n">assign</span><span class="p">(</span><span class="n">value_type</span> <span class="k">const</span><span class="o">*</span> <span class="n">s</span><span class="p">);</span>
|
||||
<span class="n">basic_string</span><span class="o">&</span> <span class="n">assign</span><span class="p">(</span><span class="n">size_type</span> <span class="n">n</span><span class="p">,</span> <span class="n">value_type</span> <span class="n">c</span><span class="p">);</span>
|
||||
<span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">basic_string</span><span class="o">&</span> <span class="n">assign</span><span class="p">(</span><span class="n">basic_string</span><span class="o"><</span><span class="n">T</span><span class="p">,</span> <span class="n">N2</span><span class="p">,</span> <span class="n">Traits</span><span class="o">></span> <span class="k">const</span><span class="o">&</span> <span class="n">str</span><span class="p">,</span> <span class="n">size_type</span> <span class="n">pos</span><span class="p">,</span> <span class="n">size_type</span> <span class="n">n</span><span class="p">);</span>
|
||||
<span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">basic_string</span><span class="o">&</span> <span class="n">assign</span><span class="p">(</span><span class="n">value_type</span> <span class="k">const</span><span class="o">*</span> <span class="n">s</span><span class="p">,</span> <span class="n">size_type</span> <span class="n">n</span><span class="p">);</span>
|
||||
<span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">basic_string</span><span class="o">&</span> <span class="n">assign</span><span class="p">(</span><span class="n">value_type</span> <span class="k">const</span><span class="o">*</span> <span class="n">s</span><span class="p">);</span>
|
||||
<span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">basic_string</span><span class="o">&</span> <span class="n">assign</span><span class="p">(</span><span class="n">size_type</span> <span class="n">n</span><span class="p">,</span> <span class="n">value_type</span> <span class="n">c</span><span class="p">);</span>
|
||||
<span class="k">template</span><span class="o"><</span><span class="k">typename</span> <span class="n">InputIterator</span><span class="o">></span>
|
||||
<span class="n">basic_string</span><span class="o">&</span> <span class="n">assign</span><span class="p">(</span><span class="n">InputIterator</span> <span class="n">first</span><span class="p">,</span> <span class="n">InputIterator</span> <span class="n">last</span><span class="p">);</span>
|
||||
<span class="kt">void</span> <span class="n">swap</span><span class="p">(</span><span class="n">basic_string</span><span class="o">&</span> <span class="n">other</span><span class="p">)</span> <span class="n">SPROUT_NOEXCEPT_EXPR</span><span class="p">(</span><span class="n">SPROUT_NOEXCEPT_EXPR</span><span class="p">(</span><span class="n">std</span><span class="o">::</span><span class="n">swap</span><span class="p">(</span><span class="n">std</span><span class="o">::</span><span class="n">declval</span><span class="o"><</span><span class="n">T</span><span class="o">&></span><span class="p">(),</span> <span class="n">std</span><span class="o">::</span><span class="n">declval</span><span class="o"><</span><span class="n">T</span><span class="o">&></span><span class="p">())));</span>
|
||||
<span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">basic_string</span><span class="o">&</span> <span class="n">assign</span><span class="p">(</span><span class="n">InputIterator</span> <span class="n">first</span><span class="p">,</span> <span class="n">InputIterator</span> <span class="n">last</span><span class="p">);</span>
|
||||
<span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="kt">void</span> <span class="n">swap</span><span class="p">(</span><span class="n">basic_string</span><span class="o">&</span> <span class="n">other</span><span class="p">)</span> <span class="n">SPROUT_NOEXCEPT_EXPR</span><span class="p">(</span><span class="n">SPROUT_NOEXCEPT_EXPR</span><span class="p">(</span><span class="n">std</span><span class="o">::</span><span class="n">swap</span><span class="p">(</span><span class="n">std</span><span class="o">::</span><span class="n">declval</span><span class="o"><</span><span class="n">T</span><span class="o">&></span><span class="p">(),</span> <span class="n">std</span><span class="o">::</span><span class="n">declval</span><span class="o"><</span><span class="n">T</span><span class="o">&></span><span class="p">())));</span>
|
||||
|
||||
<span class="c1">// string operations:</span>
|
||||
<span class="n">SPROUT_CONSTEXPR</span> <span class="n">const_pointer</span> <span class="n">c_str</span><span class="p">()</span> <span class="k">const</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<span class="n">pointer</span> <span class="n">data</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">pointer</span> <span class="n">data</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<span class="n">SPROUT_CONSTEXPR</span> <span class="n">const_pointer</span> <span class="n">data</span><span class="p">()</span> <span class="k">const</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<span class="n">pointer</span> <span class="n">c_array</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">pointer</span> <span class="n">c_array</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<span class="n">SPROUT_CONSTEXPR</span> <span class="n">const_pointer</span> <span class="n">c_array</span><span class="p">()</span> <span class="k">const</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<span class="k">template</span><span class="o"><</span><span class="n">std</span><span class="o">::</span><span class="n">size_t</span> <span class="n">N2</span><span class="o">></span>
|
||||
<span class="n">SPROUT_CONSTEXPR</span> <span class="n">size_type</span> <span class="n">find</span><span class="p">(</span><span class="n">basic_string</span><span class="o"><</span><span class="n">T</span><span class="p">,</span> <span class="n">N2</span><span class="p">,</span> <span class="n">Traits</span><span class="o">></span> <span class="k">const</span><span class="o">&</span> <span class="n">str</span><span class="p">,</span> <span class="n">size_type</span> <span class="n">pos</span> <span class="o">=</span> <span class="mi">0</span><span class="p">)</span> <span class="k">const</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
|
@ -637,17 +637,17 @@ convertible to pointer</td>
|
|||
|
||||
<span class="c1">// conversions:</span>
|
||||
<span class="k">template</span><span class="o"><</span><span class="k">typename</span> <span class="n">Allocator</span><span class="o">></span>
|
||||
<span class="n">SPROUT_EXPLICIT_CONVERSION</span> <span class="k">operator</span> <span class="n">std</span><span class="o">::</span><span class="n">basic_string</span><span class="o"><</span><span class="n">T</span><span class="p">,</span> <span class="n">Traits</span><span class="p">,</span> <span class="n">Allocator</span><span class="o">></span><span class="p">()</span> <span class="k">const</span><span class="p">;</span>
|
||||
<span class="n">SPROUT_EXPLICIT_CONVERSION</span> <span class="n">SPROUT_NON_CONSTEXPR</span> <span class="k">operator</span> <span class="n">std</span><span class="o">::</span><span class="n">basic_string</span><span class="o"><</span><span class="n">T</span><span class="p">,</span> <span class="n">Traits</span><span class="p">,</span> <span class="n">Allocator</span><span class="o">></span><span class="p">()</span> <span class="k">const</span><span class="p">;</span>
|
||||
|
||||
<span class="c1">// construct/copy/destroy (for string iterator):</span>
|
||||
<span class="k">template</span><span class="o"><</span><span class="k">typename</span> <span class="n">StringConstIterator</span><span class="o">></span>
|
||||
<span class="n">basic_string</span><span class="o">&</span> <span class="k">operator</span><span class="o">=</span><span class="p">(</span><span class="n">StringConstIterator</span> <span class="n">rhs</span><span class="p">);</span>
|
||||
<span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">basic_string</span><span class="o">&</span> <span class="k">operator</span><span class="o">=</span><span class="p">(</span><span class="n">StringConstIterator</span> <span class="n">rhs</span><span class="p">);</span>
|
||||
|
||||
<span class="c1">// modifiers (for string iterator):</span>
|
||||
<span class="k">template</span><span class="o"><</span><span class="k">typename</span> <span class="n">StringConstIterator</span><span class="o">></span>
|
||||
<span class="n">basic_string</span><span class="o">&</span> <span class="n">assign</span><span class="p">(</span><span class="n">StringConstIterator</span> <span class="n">s</span><span class="p">,</span> <span class="n">size_type</span> <span class="n">n</span><span class="p">);</span>
|
||||
<span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">basic_string</span><span class="o">&</span> <span class="n">assign</span><span class="p">(</span><span class="n">StringConstIterator</span> <span class="n">s</span><span class="p">,</span> <span class="n">size_type</span> <span class="n">n</span><span class="p">);</span>
|
||||
<span class="k">template</span><span class="o"><</span><span class="k">typename</span> <span class="n">StringConstIterator</span><span class="o">></span>
|
||||
<span class="n">basic_string</span><span class="o">&</span> <span class="n">assign</span><span class="p">(</span><span class="n">StringConstIterator</span> <span class="n">s</span><span class="p">);</span>
|
||||
<span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">basic_string</span><span class="o">&</span> <span class="n">assign</span><span class="p">(</span><span class="n">StringConstIterator</span> <span class="n">s</span><span class="p">);</span>
|
||||
|
||||
<span class="c1">// string operations (for string iterator):</span>
|
||||
<span class="k">template</span><span class="o"><</span><span class="k">typename</span> <span class="n">StringConstIterator</span><span class="o">></span>
|
||||
|
|
|
@ -112,7 +112,7 @@
|
|||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="k">template</span><span class="o"><</span><span class="k">typename</span> <span class="n">StringConstIterator</span><span class="o">></span>
|
||||
<span class="n">basic_string</span><span class="o">&</span> <span class="k">operator</span><span class="o">=</span><span class="p">(</span><span class="n">StringConstIterator</span> <span class="n">rhs</span><span class="p">);</span>
|
||||
<span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">basic_string</span><span class="o">&</span> <span class="k">operator</span><span class="o">=</span><span class="p">(</span><span class="n">StringConstIterator</span> <span class="n">rhs</span><span class="p">);</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -113,12 +113,12 @@
|
|||
<h1>operator=<a class="headerlink" href="#operator" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">basic_string</span><span class="o">&</span> <span class="k">operator</span><span class="o">=</span><span class="p">(</span><span class="n">basic_string</span> <span class="k">const</span><span class="o">&</span> <span class="n">rhs</span><span class="p">);</span>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">basic_string</span><span class="o">&</span> <span class="k">operator</span><span class="o">=</span><span class="p">(</span><span class="n">basic_string</span> <span class="k">const</span><span class="o">&</span> <span class="n">rhs</span><span class="p">);</span>
|
||||
|
||||
<span class="k">template</span><span class="o"><</span><span class="n">std</span><span class="o">::</span><span class="n">size_t</span> <span class="n">N2</span><span class="p">,</span> <span class="k">typename</span> <span class="n">Enable</span> <span class="o">=</span> <span class="k">typename</span> <span class="n">std</span><span class="o">::</span><span class="n">enable_if</span><span class="o"><</span><span class="p">(</span><span class="n">N2</span> <span class="o">!=</span> <span class="n">N</span><span class="p">)</span><span class="o">>::</span><span class="n">type</span><span class="o">></span>
|
||||
<span class="n">basic_string</span><span class="o">&</span> <span class="k">operator</span><span class="o">=</span><span class="p">(</span><span class="n">basic_string</span><span class="o"><</span><span class="n">T</span><span class="p">,</span> <span class="n">N2</span><span class="p">,</span> <span class="n">Traits</span><span class="o">></span> <span class="k">const</span><span class="o">&</span> <span class="n">rhs</span><span class="p">);</span>
|
||||
<span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">basic_string</span><span class="o">&</span> <span class="k">operator</span><span class="o">=</span><span class="p">(</span><span class="n">basic_string</span><span class="o"><</span><span class="n">T</span><span class="p">,</span> <span class="n">N2</span><span class="p">,</span> <span class="n">Traits</span><span class="o">></span> <span class="k">const</span><span class="o">&</span> <span class="n">rhs</span><span class="p">);</span>
|
||||
|
||||
<span class="n">basic_string</span><span class="o">&</span> <span class="k">operator</span><span class="o">=</span><span class="p">(</span><span class="n">value_type</span> <span class="k">const</span><span class="o">*</span> <span class="n">rhs</span><span class="p">);</span>
|
||||
<span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">basic_string</span><span class="o">&</span> <span class="k">operator</span><span class="o">=</span><span class="p">(</span><span class="n">value_type</span> <span class="k">const</span><span class="o">*</span> <span class="n">rhs</span><span class="p">);</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -110,7 +110,7 @@
|
|||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="k">template</span><span class="o"><</span><span class="k">typename</span> <span class="n">Allocator</span><span class="o">></span>
|
||||
<span class="n">SPROUT_EXPLICIT_CONVERSION</span> <span class="k">operator</span> <span class="n">std</span><span class="o">::</span><span class="n">basic_string</span><span class="o"><</span><span class="n">T</span><span class="p">,</span> <span class="n">Traits</span><span class="p">,</span> <span class="n">Allocator</span><span class="o">></span><span class="p">()</span> <span class="k">const</span><span class="p">;</span>
|
||||
<span class="n">SPROUT_EXPLICIT_CONVERSION</span> <span class="n">SPROUT_NON_CONSTEXPR</span> <span class="k">operator</span> <span class="n">std</span><span class="o">::</span><span class="n">basic_string</span><span class="o"><</span><span class="n">T</span><span class="p">,</span> <span class="n">Traits</span><span class="p">,</span> <span class="n">Allocator</span><span class="o">></span><span class="p">()</span> <span class="k">const</span><span class="p">;</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -111,7 +111,7 @@
|
|||
<h1>operator[]<a class="headerlink" href="#operator" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">reference</span> <span class="k">operator</span><span class="p">[](</span><span class="n">size_type</span> <span class="n">n</span><span class="p">);</span>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">reference</span> <span class="k">operator</span><span class="p">[](</span><span class="n">size_type</span> <span class="n">n</span><span class="p">);</span>
|
||||
|
||||
<span class="n">SPROUT_CONSTEXPR</span> <span class="n">const_reference</span> <span class="k">operator</span><span class="p">[](</span><span class="n">size_type</span> <span class="n">n</span><span class="p">)</span> <span class="k">const</span><span class="p">;</span>
|
||||
</pre></div>
|
||||
|
|
|
@ -110,7 +110,7 @@
|
|||
<h1>rbegin<a class="headerlink" href="#rbegin" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">reverse_iterator</span> <span class="n">rbegin</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">reverse_iterator</span> <span class="n">rbegin</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
|
||||
<span class="n">SPROUT_CONSTEXPR</span> <span class="n">const_reverse_iterator</span> <span class="n">rbegin</span><span class="p">()</span> <span class="k">const</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
</pre></div>
|
||||
|
|
|
@ -110,7 +110,7 @@
|
|||
<h1>rend<a class="headerlink" href="#rend" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">reverse_iterator</span> <span class="n">rend</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">reverse_iterator</span> <span class="n">rend</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
|
||||
<span class="n">SPROUT_CONSTEXPR</span> <span class="n">const_reverse_iterator</span> <span class="n">rend</span><span class="p">()</span> <span class="k">const</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
</pre></div>
|
||||
|
|
|
@ -111,9 +111,9 @@
|
|||
<h1>resize<a class="headerlink" href="#resize" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="kt">void</span> <span class="n">resize</span><span class="p">(</span><span class="n">size_type</span> <span class="n">n</span><span class="p">,</span> <span class="n">value_type</span> <span class="n">c</span><span class="p">);</span>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="kt">void</span> <span class="n">resize</span><span class="p">(</span><span class="n">size_type</span> <span class="n">n</span><span class="p">,</span> <span class="n">value_type</span> <span class="n">c</span><span class="p">);</span>
|
||||
|
||||
<span class="kt">void</span> <span class="n">resize</span><span class="p">(</span><span class="n">size_type</span> <span class="n">n</span><span class="p">);</span>
|
||||
<span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="kt">void</span> <span class="n">resize</span><span class="p">(</span><span class="n">size_type</span> <span class="n">n</span><span class="p">);</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -111,7 +111,7 @@
|
|||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="k">template</span><span class="o"><</span><span class="k">typename</span> <span class="n">T</span><span class="p">,</span> <span class="n">std</span><span class="o">::</span><span class="n">size_t</span> <span class="n">N</span><span class="p">,</span> <span class="k">typename</span> <span class="n">Traits</span><span class="o">></span>
|
||||
<span class="kr">inline</span> <span class="kt">void</span>
|
||||
<span class="kr">inline</span> <span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="kt">void</span>
|
||||
<span class="n">swap</span><span class="p">(</span><span class="n">sprout</span><span class="o">::</span><span class="n">basic_string</span><span class="o"><</span><span class="n">T</span><span class="p">,</span> <span class="n">N</span><span class="p">,</span> <span class="n">Traits</span><span class="o">>&</span> <span class="n">lhs</span><span class="p">,</span> <span class="n">sprout</span><span class="o">::</span><span class="n">basic_string</span><span class="o"><</span><span class="n">T</span><span class="p">,</span> <span class="n">N</span><span class="p">,</span> <span class="n">Traits</span><span class="o">>&</span> <span class="n">rhs</span><span class="p">)</span>
|
||||
<span class="n">SPROUT_NOEXCEPT_EXPR</span><span class="p">(</span><span class="n">SPROUT_NOEXCEPT_EXPR</span><span class="p">(</span><span class="n">lhs</span><span class="p">.</span><span class="n">swap</span><span class="p">(</span><span class="n">rhs</span><span class="p">)));</span>
|
||||
</pre></div>
|
||||
|
|
|
@ -111,7 +111,7 @@
|
|||
<h1>swap<a class="headerlink" href="#swap" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="kt">void</span> <span class="n">swap</span><span class="p">(</span><span class="n">basic_string</span><span class="o">&</span> <span class="n">s</span><span class="p">)</span> <span class="n">SPROUT_NOEXCEPT_EXPR</span><span class="p">(</span><span class="n">SPROUT_NOEXCEPT_EXPR</span><span class="p">(</span><span class="n">std</span><span class="o">::</span><span class="n">swap</span><span class="p">(</span><span class="n">std</span><span class="o">::</span><span class="n">declval</span><span class="o"><</span><span class="n">T</span><span class="o">&></span><span class="p">(),</span> <span class="n">std</span><span class="o">::</span><span class="n">declval</span><span class="o"><</span><span class="n">T</span><span class="o">&></span><span class="p">())));</span>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="kt">void</span> <span class="n">swap</span><span class="p">(</span><span class="n">basic_string</span><span class="o">&</span> <span class="n">s</span><span class="p">)</span> <span class="n">SPROUT_NOEXCEPT_EXPR</span><span class="p">(</span><span class="n">SPROUT_NOEXCEPT_EXPR</span><span class="p">(</span><span class="n">std</span><span class="o">::</span><span class="n">swap</span><span class="p">(</span><span class="n">std</span><span class="o">::</span><span class="n">declval</span><span class="o"><</span><span class="n">T</span><span class="o">&></span><span class="p">(),</span> <span class="n">std</span><span class="o">::</span><span class="n">declval</span><span class="o"><</span><span class="n">T</span><span class="o">&></span><span class="p">())));</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -111,7 +111,7 @@
|
|||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="k">template</span><span class="o"><</span><span class="k">typename</span> <span class="n">OutputIterator</span><span class="o">></span>
|
||||
<span class="k">static</span> <span class="n">OutputIterator</span> <span class="n">assign</span><span class="p">(</span><span class="n">OutputIterator</span> <span class="n">s</span><span class="p">,</span> <span class="n">std</span><span class="o">::</span><span class="n">size_t</span> <span class="n">n</span><span class="p">,</span> <span class="n">char_type</span> <span class="n">a</span><span class="p">);</span>
|
||||
<span class="k">static</span> <span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">OutputIterator</span> <span class="n">assign</span><span class="p">(</span><span class="n">OutputIterator</span> <span class="n">s</span><span class="p">,</span> <span class="n">std</span><span class="o">::</span><span class="n">size_t</span> <span class="n">n</span><span class="p">,</span> <span class="n">char_type</span> <span class="n">a</span><span class="p">);</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -110,7 +110,7 @@
|
|||
<h1>assign<a class="headerlink" href="#assign" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="k">static</span> <span class="n">char_type</span><span class="o">*</span> <span class="n">assign</span><span class="p">(</span><span class="n">char_type</span><span class="o">*</span> <span class="n">s</span><span class="p">,</span> <span class="n">std</span><span class="o">::</span><span class="n">size_t</span> <span class="n">n</span><span class="p">,</span> <span class="n">char_type</span> <span class="n">a</span><span class="p">);</span>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="k">static</span> <span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">char_type</span><span class="o">*</span> <span class="n">assign</span><span class="p">(</span><span class="n">char_type</span><span class="o">*</span> <span class="n">s</span><span class="p">,</span> <span class="n">std</span><span class="o">::</span><span class="n">size_t</span> <span class="n">n</span><span class="p">,</span> <span class="n">char_type</span> <span class="n">a</span><span class="p">);</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -110,7 +110,7 @@
|
|||
<h1>assign<a class="headerlink" href="#assign" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="k">static</span> <span class="kt">void</span> <span class="n">assign</span><span class="p">(</span><span class="n">char_type</span><span class="o">&</span> <span class="n">c1</span><span class="p">,</span> <span class="n">char_type</span> <span class="k">const</span><span class="o">&</span> <span class="n">c2</span><span class="p">);</span>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="k">static</span> <span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="kt">void</span> <span class="n">assign</span><span class="p">(</span><span class="n">char_type</span><span class="o">&</span> <span class="n">c1</span><span class="p">,</span> <span class="n">char_type</span> <span class="k">const</span><span class="o">&</span> <span class="n">c2</span><span class="p">);</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -112,7 +112,7 @@
|
|||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="k">template</span><span class="o"><</span><span class="k">typename</span> <span class="n">OutputIterator</span><span class="p">,</span> <span class="k">typename</span> <span class="n">ConstInputIterator</span><span class="o">></span>
|
||||
<span class="k">static</span> <span class="n">OutputIterator</span> <span class="n">copy</span><span class="p">(</span><span class="n">OutputIterator</span> <span class="n">s1</span><span class="p">,</span> <span class="n">ConstInputIterator</span> <span class="n">s2</span><span class="p">,</span> <span class="n">std</span><span class="o">::</span><span class="n">size_t</span> <span class="n">n</span><span class="p">);</span>
|
||||
<span class="k">static</span> <span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">OutputIterator</span> <span class="n">copy</span><span class="p">(</span><span class="n">OutputIterator</span> <span class="n">s1</span><span class="p">,</span> <span class="n">ConstInputIterator</span> <span class="n">s2</span><span class="p">,</span> <span class="n">std</span><span class="o">::</span><span class="n">size_t</span> <span class="n">n</span><span class="p">);</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -111,7 +111,7 @@
|
|||
<h1>copy<a class="headerlink" href="#copy" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="k">static</span> <span class="n">char_type</span><span class="o">*</span> <span class="n">copy</span><span class="p">(</span><span class="n">char_type</span><span class="o">*</span> <span class="n">s1</span><span class="p">,</span> <span class="n">char_type</span> <span class="k">const</span><span class="o">*</span> <span class="n">s2</span><span class="p">,</span> <span class="n">std</span><span class="o">::</span><span class="n">size_t</span> <span class="n">n</span><span class="p">);</span>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="k">static</span> <span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">char_type</span><span class="o">*</span> <span class="n">copy</span><span class="p">(</span><span class="n">char_type</span><span class="o">*</span> <span class="n">s1</span><span class="p">,</span> <span class="n">char_type</span> <span class="k">const</span><span class="o">*</span> <span class="n">s2</span><span class="p">,</span> <span class="n">std</span><span class="o">::</span><span class="n">size_t</span> <span class="n">n</span><span class="p">);</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -310,7 +310,7 @@
|
|||
<span class="k">typedef</span> <span class="k">typename</span> <span class="n">std</span><span class="o">::</span><span class="n">char_traits</span><span class="o"><</span><span class="n">Char</span><span class="o">>::</span><span class="n">state_type</span> <span class="n">state_type</span><span class="p">;</span>
|
||||
|
||||
<span class="c1">// character operations:</span>
|
||||
<span class="k">static</span> <span class="kt">void</span> <span class="n">assign</span><span class="p">(</span><span class="n">char_type</span><span class="o">&</span> <span class="n">c1</span><span class="p">,</span> <span class="n">char_type</span> <span class="k">const</span><span class="o">&</span> <span class="n">c2</span><span class="p">)</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<span class="k">static</span> <span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="kt">void</span> <span class="n">assign</span><span class="p">(</span><span class="n">char_type</span><span class="o">&</span> <span class="n">c1</span><span class="p">,</span> <span class="n">char_type</span> <span class="k">const</span><span class="o">&</span> <span class="n">c2</span><span class="p">)</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<span class="k">static</span> <span class="n">SPROUT_CONSTEXPR</span> <span class="kt">bool</span> <span class="n">eq</span><span class="p">(</span><span class="n">char_type</span> <span class="n">c1</span><span class="p">,</span> <span class="n">char_type</span> <span class="n">c2</span><span class="p">)</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
<span class="k">static</span> <span class="n">SPROUT_CONSTEXPR</span> <span class="kt">bool</span> <span class="n">lt</span><span class="p">(</span><span class="n">char_type</span> <span class="n">c1</span><span class="p">,</span> <span class="n">char_type</span> <span class="n">c2</span><span class="p">)</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
|
||||
|
@ -318,9 +318,9 @@
|
|||
<span class="k">static</span> <span class="n">SPROUT_CONSTEXPR</span> <span class="kt">int</span> <span class="n">compare</span><span class="p">(</span><span class="n">char_type</span> <span class="k">const</span><span class="o">*</span> <span class="n">s1</span><span class="p">,</span> <span class="n">char_type</span> <span class="k">const</span><span class="o">*</span> <span class="n">s2</span><span class="p">,</span> <span class="n">std</span><span class="o">::</span><span class="n">size_t</span> <span class="n">n</span><span class="p">);</span>
|
||||
<span class="k">static</span> <span class="n">SPROUT_CONSTEXPR</span> <span class="n">std</span><span class="o">::</span><span class="n">size_t</span> <span class="n">length</span><span class="p">(</span><span class="n">char_type</span> <span class="k">const</span><span class="o">*</span> <span class="n">s</span><span class="p">);</span>
|
||||
<span class="k">static</span> <span class="n">SPROUT_CONSTEXPR</span> <span class="n">char_type</span> <span class="k">const</span><span class="o">*</span> <span class="n">find</span><span class="p">(</span><span class="n">char_type</span> <span class="k">const</span><span class="o">*</span> <span class="n">s</span><span class="p">,</span> <span class="n">std</span><span class="o">::</span><span class="n">size_t</span> <span class="n">n</span><span class="p">,</span> <span class="n">char_type</span> <span class="k">const</span><span class="o">&</span> <span class="n">a</span><span class="p">);</span>
|
||||
<span class="k">static</span> <span class="n">char_type</span><span class="o">*</span> <span class="n">move</span><span class="p">(</span><span class="n">char_type</span><span class="o">*</span> <span class="n">s1</span><span class="p">,</span> <span class="n">char_type</span> <span class="k">const</span><span class="o">*</span> <span class="n">s2</span><span class="p">,</span> <span class="n">std</span><span class="o">::</span><span class="n">size_t</span> <span class="n">n</span><span class="p">);</span>
|
||||
<span class="k">static</span> <span class="n">char_type</span><span class="o">*</span> <span class="n">copy</span><span class="p">(</span><span class="n">char_type</span><span class="o">*</span> <span class="n">s1</span><span class="p">,</span> <span class="n">char_type</span> <span class="k">const</span><span class="o">*</span> <span class="n">s2</span><span class="p">,</span> <span class="n">std</span><span class="o">::</span><span class="n">size_t</span> <span class="n">n</span><span class="p">);</span>
|
||||
<span class="k">static</span> <span class="n">char_type</span><span class="o">*</span> <span class="n">assign</span><span class="p">(</span><span class="n">char_type</span><span class="o">*</span> <span class="n">s</span><span class="p">,</span> <span class="n">std</span><span class="o">::</span><span class="n">size_t</span> <span class="n">n</span><span class="p">,</span> <span class="n">char_type</span> <span class="n">a</span><span class="p">);</span>
|
||||
<span class="k">static</span> <span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">char_type</span><span class="o">*</span> <span class="n">move</span><span class="p">(</span><span class="n">char_type</span><span class="o">*</span> <span class="n">s1</span><span class="p">,</span> <span class="n">char_type</span> <span class="k">const</span><span class="o">*</span> <span class="n">s2</span><span class="p">,</span> <span class="n">std</span><span class="o">::</span><span class="n">size_t</span> <span class="n">n</span><span class="p">);</span>
|
||||
<span class="k">static</span> <span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">char_type</span><span class="o">*</span> <span class="n">copy</span><span class="p">(</span><span class="n">char_type</span><span class="o">*</span> <span class="n">s1</span><span class="p">,</span> <span class="n">char_type</span> <span class="k">const</span><span class="o">*</span> <span class="n">s2</span><span class="p">,</span> <span class="n">std</span><span class="o">::</span><span class="n">size_t</span> <span class="n">n</span><span class="p">);</span>
|
||||
<span class="k">static</span> <span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">char_type</span><span class="o">*</span> <span class="n">assign</span><span class="p">(</span><span class="n">char_type</span><span class="o">*</span> <span class="n">s</span><span class="p">,</span> <span class="n">std</span><span class="o">::</span><span class="n">size_t</span> <span class="n">n</span><span class="p">,</span> <span class="n">char_type</span> <span class="n">a</span><span class="p">);</span>
|
||||
|
||||
<span class="c1">// integer type operations:</span>
|
||||
<span class="k">static</span> <span class="n">SPROUT_CONSTEXPR</span> <span class="n">int_type</span> <span class="n">not_eof</span><span class="p">(</span><span class="n">int_type</span> <span class="n">c</span><span class="p">)</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
|
@ -341,11 +341,11 @@
|
|||
<span class="k">template</span><span class="o"><</span><span class="k">typename</span> <span class="n">ConstInputIterator</span><span class="o">></span>
|
||||
<span class="k">static</span> <span class="n">SPROUT_CONSTEXPR</span> <span class="n">ConstInputIterator</span> <span class="n">find</span><span class="p">(</span><span class="n">ConstInputIterator</span> <span class="n">s</span><span class="p">,</span> <span class="n">std</span><span class="o">::</span><span class="n">size_t</span> <span class="n">n</span><span class="p">,</span> <span class="n">char_type</span> <span class="k">const</span><span class="o">&</span> <span class="n">a</span><span class="p">);</span>
|
||||
<span class="k">template</span><span class="o"><</span><span class="k">typename</span> <span class="n">OutputIterator</span><span class="p">,</span> <span class="k">typename</span> <span class="n">ConstInputIterator</span><span class="o">></span>
|
||||
<span class="k">static</span> <span class="n">OutputIterator</span> <span class="n">move</span><span class="p">(</span><span class="n">OutputIterator</span> <span class="n">s1</span><span class="p">,</span> <span class="n">ConstInputIterator</span> <span class="n">s2</span><span class="p">,</span> <span class="n">std</span><span class="o">::</span><span class="n">size_t</span> <span class="n">n</span><span class="p">);</span>
|
||||
<span class="k">static</span> <span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">OutputIterator</span> <span class="n">move</span><span class="p">(</span><span class="n">OutputIterator</span> <span class="n">s1</span><span class="p">,</span> <span class="n">ConstInputIterator</span> <span class="n">s2</span><span class="p">,</span> <span class="n">std</span><span class="o">::</span><span class="n">size_t</span> <span class="n">n</span><span class="p">);</span>
|
||||
<span class="k">template</span><span class="o"><</span><span class="k">typename</span> <span class="n">OutputIterator</span><span class="p">,</span> <span class="k">typename</span> <span class="n">ConstInputIterator</span><span class="o">></span>
|
||||
<span class="k">static</span> <span class="n">OutputIterator</span> <span class="n">copy</span><span class="p">(</span><span class="n">OutputIterator</span> <span class="n">s1</span><span class="p">,</span> <span class="n">ConstInputIterator</span> <span class="n">s2</span><span class="p">,</span> <span class="n">std</span><span class="o">::</span><span class="n">size_t</span> <span class="n">n</span><span class="p">);</span>
|
||||
<span class="k">static</span> <span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">OutputIterator</span> <span class="n">copy</span><span class="p">(</span><span class="n">OutputIterator</span> <span class="n">s1</span><span class="p">,</span> <span class="n">ConstInputIterator</span> <span class="n">s2</span><span class="p">,</span> <span class="n">std</span><span class="o">::</span><span class="n">size_t</span> <span class="n">n</span><span class="p">);</span>
|
||||
<span class="k">template</span><span class="o"><</span><span class="k">typename</span> <span class="n">OutputIterator</span><span class="o">></span>
|
||||
<span class="k">static</span> <span class="n">OutputIterator</span> <span class="n">assign</span><span class="p">(</span><span class="n">OutputIterator</span> <span class="n">s</span><span class="p">,</span> <span class="n">std</span><span class="o">::</span><span class="n">size_t</span> <span class="n">n</span><span class="p">,</span> <span class="n">char_type</span> <span class="n">a</span><span class="p">);</span>
|
||||
<span class="k">static</span> <span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">OutputIterator</span> <span class="n">assign</span><span class="p">(</span><span class="n">OutputIterator</span> <span class="n">s</span><span class="p">,</span> <span class="n">std</span><span class="o">::</span><span class="n">size_t</span> <span class="n">n</span><span class="p">,</span> <span class="n">char_type</span> <span class="n">a</span><span class="p">);</span>
|
||||
<span class="p">};</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
|
|
|
@ -111,7 +111,7 @@
|
|||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="k">template</span><span class="o"><</span><span class="k">typename</span> <span class="n">OutputIterator</span><span class="p">,</span> <span class="k">typename</span> <span class="n">ConstInputIterator</span><span class="o">></span>
|
||||
<span class="k">static</span> <span class="n">OutputIterator</span> <span class="n">move</span><span class="p">(</span><span class="n">OutputIterator</span> <span class="n">s1</span><span class="p">,</span> <span class="n">ConstInputIterator</span> <span class="n">s2</span><span class="p">,</span> <span class="n">std</span><span class="o">::</span><span class="n">size_t</span> <span class="n">n</span><span class="p">);</span>
|
||||
<span class="k">static</span> <span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">OutputIterator</span> <span class="n">move</span><span class="p">(</span><span class="n">OutputIterator</span> <span class="n">s1</span><span class="p">,</span> <span class="n">ConstInputIterator</span> <span class="n">s2</span><span class="p">,</span> <span class="n">std</span><span class="o">::</span><span class="n">size_t</span> <span class="n">n</span><span class="p">);</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -110,7 +110,7 @@
|
|||
<h1>move<a class="headerlink" href="#move" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="k">static</span> <span class="n">char_type</span><span class="o">*</span> <span class="n">move</span><span class="p">(</span><span class="n">char_type</span><span class="o">*</span> <span class="n">s1</span><span class="p">,</span> <span class="n">char_type</span> <span class="k">const</span><span class="o">*</span> <span class="n">s2</span><span class="p">,</span> <span class="n">std</span><span class="o">::</span><span class="n">size_t</span> <span class="n">n</span><span class="p">);</span>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="k">static</span> <span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">char_type</span><span class="o">*</span> <span class="n">move</span><span class="p">(</span><span class="n">char_type</span><span class="o">*</span> <span class="n">s1</span><span class="p">,</span> <span class="n">char_type</span> <span class="k">const</span><span class="o">*</span> <span class="n">s2</span><span class="p">,</span> <span class="n">std</span><span class="o">::</span><span class="n">size_t</span> <span class="n">n</span><span class="p">);</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -48,7 +48,7 @@ Supported Compilers
|
|||
|
||||
Linux:
|
||||
|
||||
* GCC, C++11 mode: 4.7.0, 4.7.1, 4.7.2, 4.7.3, 4.8.0, 4.8.1
|
||||
* GCC, C++11 mode: 4.7.0, 4.7.1, 4.7.2, 4.7.3, 4.8.0, 4.8.1, 4.8.2
|
||||
* Clang, C++11 mode: 3.2, 3.3
|
||||
|
||||
.. _sprout-author:
|
||||
|
|
|
@ -7,7 +7,7 @@ Interface
|
|||
========================================
|
||||
.. sourcecode:: c++
|
||||
|
||||
void assign(const_reference value);
|
||||
SPROUT_CXX14_CONSTEXPR void assign(const_reference value);
|
||||
|
||||
SPROUT_CONSTEXPR array assign(const_reference value) const;
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ Interface
|
|||
========================================
|
||||
.. sourcecode:: c++
|
||||
|
||||
reference at(size_type n);
|
||||
SPROUT_CXX14_CONSTEXPR reference at(size_type n);
|
||||
|
||||
SPROUT_CONSTEXPR const_reference at(size_type n) const;
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ Interface
|
|||
========================================
|
||||
.. sourcecode:: c++
|
||||
|
||||
reference back();
|
||||
SPROUT_CXX14_CONSTEXPR reference back();
|
||||
|
||||
SPROUT_CONSTEXPR const_reference back() const;
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ Interface
|
|||
========================================
|
||||
.. sourcecode:: c++
|
||||
|
||||
iterator begin() SPROUT_NOEXCEPT;
|
||||
SPROUT_CXX14_CONSTEXPR iterator begin() SPROUT_NOEXCEPT;
|
||||
|
||||
SPROUT_CONSTEXPR const_iterator begin() const SPROUT_NOEXCEPT;
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ Interface
|
|||
========================================
|
||||
.. sourcecode:: c++
|
||||
|
||||
pointer c_array() SPROUT_NOEXCEPT;
|
||||
SPROUT_CXX14_CONSTEXPR pointer c_array() SPROUT_NOEXCEPT;
|
||||
|
||||
SPROUT_CONSTEXPR const_pointer c_array() const SPROUT_NOEXCEPT;
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ Interface
|
|||
========================================
|
||||
.. sourcecode:: c++
|
||||
|
||||
pointer data() SPROUT_NOEXCEPT;
|
||||
SPROUT_CXX14_CONSTEXPR pointer data() SPROUT_NOEXCEPT;
|
||||
|
||||
SPROUT_CONSTEXPR const_pointer data() const SPROUT_NOEXCEPT;
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue