mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-14 15:04:09 +00:00
support SPROUT_CXX14_CONSTEXPR
This commit is contained in:
parent
88ee58bcf4
commit
2b0aaf71b4
139 changed files with 295 additions and 295 deletions
|
@ -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
|
||||
========================================
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue