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