30 #ifndef _GLIBCXX_RANGE_ACCESS_H 31 #define _GLIBCXX_RANGE_ACCESS_H 1 33 #pragma GCC system_header 35 #if __cplusplus >= 201103L 37 namespace std _GLIBCXX_VISIBILITY(default)
39 _GLIBCXX_BEGIN_NAMESPACE_VERSION
46 template<
class _Container>
48 begin(_Container& __cont) -> decltype(__cont.begin())
49 {
return __cont.begin(); }
56 template<
class _Container>
58 begin(
const _Container& __cont) -> decltype(__cont.begin())
59 {
return __cont.begin(); }
66 template<
class _Container>
68 end(_Container& __cont) -> decltype(__cont.end())
69 {
return __cont.end(); }
76 template<
class _Container>
78 end(
const _Container& __cont) -> decltype(__cont.end())
79 {
return __cont.end(); }
85 template<
class _Tp,
size_t _Nm>
86 inline _GLIBCXX14_CONSTEXPR _Tp*
95 template<
class _Tp,
size_t _Nm>
96 inline _GLIBCXX14_CONSTEXPR _Tp*
97 end(_Tp (&__arr)[_Nm])
98 {
return __arr + _Nm; }
100 #if __cplusplus >= 201402L 102 template<
typename _Tp>
class valarray;
114 template<
class _Container>
115 inline constexpr
auto 125 template<
class _Container>
126 inline constexpr
auto 136 template<
class _Container>
138 rbegin(_Container& __cont) -> decltype(__cont.rbegin())
139 {
return __cont.rbegin(); }
146 template<
class _Container>
148 rbegin(
const _Container& __cont) -> decltype(__cont.rbegin())
149 {
return __cont.rbegin(); }
156 template<
class _Container>
158 rend(_Container& __cont) -> decltype(__cont.rend())
159 {
return __cont.rend(); }
166 template<
class _Container>
168 rend(
const _Container& __cont) -> decltype(__cont.rend())
169 {
return __cont.rend(); }
176 template<
class _Tp,
size_t _Nm>
186 template<
class _Tp,
size_t _Nm>
216 template<
class _Container>
226 template<
class _Container>
233 _GLIBCXX_END_NAMESPACE_VERSION
238 #endif // _GLIBCXX_RANGE_ACCESS_H auto crbegin(const _Container &__cont) -> decltype(std::rbegin(__cont))
Return a reverse iterator pointing to the last element of the const container.
auto rbegin(_Container &__cont) -> decltype(__cont.rbegin())
Return a reverse iterator pointing to the last element of the container.
auto crend(const _Container &__cont) -> decltype(std::rend(__cont))
Return a reverse iterator pointing one past the first element of the const container.
constexpr auto cend(const _Container &__cont) noexcept(noexcept(std::end(__cont))) -> decltype(std::end(__cont))
Return an iterator pointing to one past the last element of the const container.
constexpr const _Tp * begin(initializer_list< _Tp > __ils) noexcept
Return an iterator pointing to the first element of the initializer_list.
constexpr auto cbegin(const _Container &__cont) noexcept(noexcept(std::begin(__cont))) -> decltype(std::begin(__cont))
Return an iterator pointing to the first element of the const container.
Smart array designed to support numeric processing.
ISO C++ entities toplevel namespace is std.
constexpr const _Tp * end(initializer_list< _Tp > __ils) noexcept
Return an iterator pointing to one past the last element of the initializer_list. ...
auto rend(_Container &__cont) -> decltype(__cont.rend())
Return a reverse iterator pointing one past the first element of the container.