libstdc++
Iterators

Macros

#define __cpp_lib_make_reverse_iterator
 
#define _GLIBCXX_MAKE_MOVE_IF_NOEXCEPT_ITERATOR(_Iter)
 
#define _GLIBCXX_MAKE_MOVE_ITERATOR(_Iter)
 

Typedefs

typedef iterator_traits< _Iterator > std::reverse_iterator< _Iterator >::__traits_type
 
typedef std::iterator_traits< _Iterator > __gnu_cxx::__normal_iterator< _Iterator, _Container >::__traits_type
 
typedef __true_type std::__is_move_iterator< move_iterator< _Iterator > >::__type
 
typedef _CharT std::istream_iterator< _Tp, _CharT, _Traits, _Dist >::char_type
 
typedef _CharT std::istreambuf_iterator< _CharT, _Traits >::char_type
 
typedef _CharT std::ostream_iterator< _Tp, _CharT, _Traits >::char_type
 
typedef _CharT std::ostreambuf_iterator< _CharT, _Traits >::char_type
 
typedef _Container std::back_insert_iterator< _Container >::container_type
 
typedef _Container std::front_insert_iterator< _Container >::container_type
 
typedef _Container std::insert_iterator< _Container >::container_type
 
typedef __traits_type::difference_type std::reverse_iterator< _Iterator >::difference_type
 
typedef __traits_type::difference_type __gnu_cxx::__normal_iterator< _Iterator, _Container >::difference_type
 
typedef __traits_type::difference_type std::move_iterator< _Iterator >::difference_type
 
typedef _Traits::int_type std::istreambuf_iterator< _CharT, _Traits >::int_type
 
typedef basic_istream< _CharT, _Traits > std::istream_iterator< _Tp, _CharT, _Traits, _Dist >::istream_type
 
typedef basic_istream< _CharT, _Traits > std::istreambuf_iterator< _CharT, _Traits >::istream_type
 
typedef __traits_type::iterator_category __gnu_cxx::__normal_iterator< _Iterator, _Container >::iterator_category
 
typedef __traits_type::iterator_category std::move_iterator< _Iterator >::iterator_category
 
typedef _Iterator std::reverse_iterator< _Iterator >::iterator_type
 
typedef _Iterator __gnu_cxx::__normal_iterator< _Iterator, _Container >::iterator_type
 
using std::move_iterator< _Iterator >::iterator_type = _Iterator
 
typedef basic_ostream< _CharT, _Traits > std::ostream_iterator< _Tp, _CharT, _Traits >::ostream_type
 
typedef basic_ostream< _CharT, _Traits > std::ostreambuf_iterator< _CharT, _Traits >::ostream_type
 
typedef __traits_type::pointer std::reverse_iterator< _Iterator >::pointer
 
typedef __traits_type::pointer __gnu_cxx::__normal_iterator< _Iterator, _Container >::pointer
 
typedef _Iterator std::move_iterator< _Iterator >::pointer
 
typedef __traits_type::reference std::reverse_iterator< _Iterator >::reference
 
typedef __traits_type::reference __gnu_cxx::__normal_iterator< _Iterator, _Container >::reference
 
typedef conditional< is_reference< __base_ref >::value, typename remove_reference< __base_ref >::type &&, __base_ref >::type std::move_iterator< _Iterator >::reference
 
typedef basic_streambuf< _CharT, _Traits > std::istreambuf_iterator< _CharT, _Traits >::streambuf_type
 
typedef basic_streambuf< _CharT, _Traits > std::ostreambuf_iterator< _CharT, _Traits >::streambuf_type
 
typedef _Traits std::istream_iterator< _Tp, _CharT, _Traits, _Dist >::traits_type
 
typedef _Traits std::istreambuf_iterator< _CharT, _Traits >::traits_type
 
typedef _Traits std::ostream_iterator< _Tp, _CharT, _Traits >::traits_type
 
typedef _Traits std::ostreambuf_iterator< _CharT, _Traits >::traits_type
 
typedef __traits_type::value_type __gnu_cxx::__normal_iterator< _Iterator, _Container >::value_type
 
typedef __traits_type::value_type std::move_iterator< _Iterator >::value_type
 

Enumerations

enum  { __value }
 

Functions

template<typename _Iter >
constexpr __gnu_cxx::__normal_iterator< _Iterator, _Container >::__normal_iterator (const __normal_iterator< _Iter, typename __enable_if<(std::__are_same< _Iter, typename _Container::pointer >::__value), _Container >::__type > &__i) noexcept
 
constexpr __gnu_cxx::__normal_iterator< _Iterator, _Container >::__normal_iterator (const _Iterator &__i) noexcept
 
 std::back_insert_iterator< _Container >::back_insert_iterator (_Container &__x)
 
 std::front_insert_iterator< _Container >::front_insert_iterator (_Container &__x)
 
 std::insert_iterator< _Container >::insert_iterator (_Container &__x, typename _Container::iterator __i)
 
constexpr std::istream_iterator< _Tp, _CharT, _Traits, _Dist >::istream_iterator ()
 
 std::istream_iterator< _Tp, _CharT, _Traits, _Dist >::istream_iterator (const istream_iterator &__obj)
 
 std::istream_iterator< _Tp, _CharT, _Traits, _Dist >::istream_iterator (istream_type &__s)
 
constexpr std::istreambuf_iterator< _CharT, _Traits >::istreambuf_iterator () noexcept
 
 std::istreambuf_iterator< _CharT, _Traits >::istreambuf_iterator (const istreambuf_iterator &) noexcept=default
 
 std::istreambuf_iterator< _CharT, _Traits >::istreambuf_iterator (istream_type &__s) noexcept
 
 std::istreambuf_iterator< _CharT, _Traits >::istreambuf_iterator (streambuf_type *__s) noexcept
 
template<typename _Iter >
constexpr std::move_iterator< _Iterator >::move_iterator (const move_iterator< _Iter > &__i)
 
constexpr std::move_iterator< _Iterator >::move_iterator (iterator_type __i)
 
 std::ostream_iterator< _Tp, _CharT, _Traits >::ostream_iterator (const ostream_iterator &__obj)
 
 std::ostream_iterator< _Tp, _CharT, _Traits >::ostream_iterator (ostream_type &__s)
 
 std::ostream_iterator< _Tp, _CharT, _Traits >::ostream_iterator (ostream_type &__s, const _CharT *__c)
 
 std::ostreambuf_iterator< _CharT, _Traits >::ostreambuf_iterator (ostream_type &__s) noexcept
 
 std::ostreambuf_iterator< _CharT, _Traits >::ostreambuf_iterator (streambuf_type *__s) noexcept
 
constexpr std::reverse_iterator< _Iterator >::reverse_iterator ()
 
constexpr std::reverse_iterator< _Iterator >::reverse_iterator (const reverse_iterator &__x)
 
template<typename _Iter >
constexpr std::reverse_iterator< _Iterator >::reverse_iterator (const reverse_iterator< _Iter > &__x)
 
constexpr std::reverse_iterator< _Iterator >::reverse_iterator (iterator_type __x)
 
template<bool _IsMove, typename _CharT >
__gnu_cxx::__enable_if< __is_char< _CharT >::__value, ostreambuf_iterator< _CharT > >::__type std::__copy_move_a2 (_CharT *__first, _CharT *__last, ostreambuf_iterator< _CharT > __result)
 
template<bool _IsMove, typename _CharT >
__gnu_cxx::__enable_if< __is_char< _CharT >::__value, ostreambuf_iterator< _CharT > >::__type std::__copy_move_a2 (const _CharT *__first, const _CharT *__last, ostreambuf_iterator< _CharT > __result)
 
template<bool _IsMove, typename _CharT >
__gnu_cxx::__enable_if< __is_char< _CharT >::__value, _CharT * >::__type std::__copy_move_a2 (istreambuf_iterator< _CharT > __first, istreambuf_iterator< _CharT > __last, _CharT *__result)
 
template<typename _CharT , typename _Size >
__enable_if_t< __is_char< _CharT >::__value, _CharT * > std::__copy_n_a (istreambuf_iterator< _CharT > __it, _Size __n, _CharT *__result)
 
template<typename _Iterator , typename _ReturnType = typename conditional<__move_if_noexcept_cond <typename iterator_traits<_Iterator>::value_type>::value, _Iterator, move_iterator<_Iterator>>::type>
constexpr _ReturnType std::__make_move_if_noexcept_iterator (_Iterator __i)
 
template<typename _Tp , typename _ReturnType = typename conditional<__move_if_noexcept_cond<_Tp>::value, const _Tp*, move_iterator<_Tp*>>::type>
constexpr _ReturnType std::__make_move_if_noexcept_iterator (_Tp *__i)
 
template<typename _Iterator >
constexpr reverse_iterator< _Iterator > std::__make_reverse_iterator (_Iterator __i)
 
template<typename _Iterator >
auto std::__miter_base (move_iterator< _Iterator > __it) -> decltype(__miter_base(__it.base()))
 
template<typename _Iterator >
constexpr auto std::__miter_base (reverse_iterator< _Iterator > __it) -> decltype(__make_reverse_iterator(__miter_base(__it.base())))
 
template<typename _Iterator , typename _Container >
constexpr _Iterator std::__niter_base (__gnu_cxx::__normal_iterator< _Iterator, _Container > __it) noexcept(/*conditional */)
 
template<typename _Iterator >
auto std::__niter_base (move_iterator< _Iterator > __it) -> decltype(make_move_iterator(__niter_base(__it.base())))
 
template<typename _Iterator >
constexpr auto std::__niter_base (reverse_iterator< _Iterator > __it) -> decltype(__make_reverse_iterator(__niter_base(__it.base())))
 
ostreambuf_iteratorstd::ostreambuf_iterator< _CharT, _Traits >::_M_put (const _CharT *__ws, streamsize __len)
 
template<typename _CharT , typename _Distance >
__gnu_cxx::__enable_if< __is_char< _CharT >::__value, void >::__type std::advance (istreambuf_iterator< _CharT > &__i, _Distance __n)
 
template<typename _Container >
back_insert_iterator< _Container > std::back_inserter (_Container &__x)
 
constexpr iterator_type std::reverse_iterator< _Iterator >::base () const
 
constexpr iterator_type std::move_iterator< _Iterator >::base () const
 
constexpr const _Iterator & __gnu_cxx::__normal_iterator< _Iterator, _Container >::base () const noexcept
 
template<typename _CharT >
__gnu_cxx::__enable_if< __is_char< _CharT >::__value, ostreambuf_iterator< _CharT > >::__type std::copy (istreambuf_iterator< _CharT > __first, istreambuf_iterator< _CharT > __last, ostreambuf_iterator< _CharT > __result)
 
bool std::istreambuf_iterator< _CharT, _Traits >::equal (const istreambuf_iterator &__b) const
 
bool std::ostreambuf_iterator< _CharT, _Traits >::failed () const noexcept
 
template<typename _CharT >
__gnu_cxx::__enable_if< __is_char< _CharT >::__value, istreambuf_iterator< _CharT > >::__type std::find (istreambuf_iterator< _CharT > __first, istreambuf_iterator< _CharT > __last, const _CharT &__val)
 
template<typename _Container >
front_insert_iterator< _Container > std::front_inserter (_Container &__x)
 
template<typename _Container , typename _Iterator >
insert_iterator< _Container > std::inserter (_Container &__x, _Iterator __i)
 
template<typename _Iterator >
constexpr move_iterator< _Iterator > std::make_move_iterator (_Iterator __i)
 
template<typename _Iterator >
constexpr reverse_iterator< _Iterator > std::make_reverse_iterator (_Iterator __i)
 
template<typename _Iterator , typename _Container >
constexpr bool __gnu_cxx::operator!= (const __normal_iterator< _Iterator, _Container > &__lhs, const __normal_iterator< _Iterator, _Container > &__rhs) noexcept
 
template<typename _IteratorL , typename _IteratorR , typename _Container >
constexpr bool __gnu_cxx::operator!= (const __normal_iterator< _IteratorL, _Container > &__lhs, const __normal_iterator< _IteratorR, _Container > &__rhs) noexcept
 
template<typename _CharT , typename _Traits >
bool std::operator!= (const istreambuf_iterator< _CharT, _Traits > &__a, const istreambuf_iterator< _CharT, _Traits > &__b)
 
template<typename _Iterator >
constexpr bool std::operator!= (const move_iterator< _Iterator > &__x, const move_iterator< _Iterator > &__y)
 
template<typename _IteratorL , typename _IteratorR >
constexpr bool std::operator!= (const move_iterator< _IteratorL > &__x, const move_iterator< _IteratorR > &__y)
 
template<typename _Iterator >
constexpr bool std::operator!= (const reverse_iterator< _Iterator > &__x, const reverse_iterator< _Iterator > &__y)
 
template<typename _IteratorL , typename _IteratorR >
constexpr bool std::operator!= (const reverse_iterator< _IteratorL > &__x, const reverse_iterator< _IteratorR > &__y)
 
ostream_iteratorstd::ostream_iterator< _Tp, _CharT, _Traits >::operator* ()
 
ostreambuf_iteratorstd::ostreambuf_iterator< _CharT, _Traits >::operator* ()
 
back_insert_iteratorstd::back_insert_iterator< _Container >::operator* ()
 
front_insert_iteratorstd::front_insert_iterator< _Container >::operator* ()
 
insert_iteratorstd::insert_iterator< _Container >::operator* ()
 
const _Tp & std::istream_iterator< _Tp, _CharT, _Traits, _Dist >::operator* () const
 
char_type std::istreambuf_iterator< _CharT, _Traits >::operator* () const
 
constexpr reference std::reverse_iterator< _Iterator >::operator* () const
 
constexpr reference std::move_iterator< _Iterator >::operator* () const
 
constexpr reference __gnu_cxx::__normal_iterator< _Iterator, _Container >::operator* () const noexcept
 
constexpr reverse_iterator std::reverse_iterator< _Iterator >::operator+ (difference_type __n) const
 
constexpr move_iterator std::move_iterator< _Iterator >::operator+ (difference_type __n) const
 
constexpr __normal_iterator __gnu_cxx::__normal_iterator< _Iterator, _Container >::operator+ (difference_type __n) const noexcept
 
template<typename _Iterator , typename _Container >
constexpr __normal_iterator< _Iterator, _Container > __gnu_cxx::operator+ (typename __normal_iterator< _Iterator, _Container >::difference_type __n, const __normal_iterator< _Iterator, _Container > &__i) noexcept
 
template<typename _Iterator >
constexpr move_iterator< _Iterator > std::operator+ (typename move_iterator< _Iterator >::difference_type __n, const move_iterator< _Iterator > &__x)
 
template<typename _Iterator >
constexpr reverse_iterator< _Iterator > std::operator+ (typename reverse_iterator< _Iterator >::difference_type __n, const reverse_iterator< _Iterator > &__x)
 
istream_iteratorstd::istream_iterator< _Tp, _CharT, _Traits, _Dist >::operator++ ()
 
istreambuf_iteratorstd::istreambuf_iterator< _CharT, _Traits >::operator++ ()
 
constexpr reverse_iteratorstd::reverse_iterator< _Iterator >::operator++ ()
 
ostream_iteratorstd::ostream_iterator< _Tp, _CharT, _Traits >::operator++ ()
 
ostreambuf_iteratorstd::ostreambuf_iterator< _CharT, _Traits >::operator++ ()
 
back_insert_iteratorstd::back_insert_iterator< _Container >::operator++ ()
 
front_insert_iteratorstd::front_insert_iterator< _Container >::operator++ ()
 
insert_iteratorstd::insert_iterator< _Container >::operator++ ()
 
constexpr move_iteratorstd::move_iterator< _Iterator >::operator++ ()
 
constexpr __normal_iterator & __gnu_cxx::__normal_iterator< _Iterator, _Container >::operator++ () noexcept
 
istream_iterator std::istream_iterator< _Tp, _CharT, _Traits, _Dist >::operator++ (int)
 
istreambuf_iterator std::istreambuf_iterator< _CharT, _Traits >::operator++ (int)
 
constexpr reverse_iterator std::reverse_iterator< _Iterator >::operator++ (int)
 
ostream_iteratorstd::ostream_iterator< _Tp, _CharT, _Traits >::operator++ (int)
 
ostreambuf_iteratorstd::ostreambuf_iterator< _CharT, _Traits >::operator++ (int)
 
back_insert_iterator std::back_insert_iterator< _Container >::operator++ (int)
 
front_insert_iterator std::front_insert_iterator< _Container >::operator++ (int)
 
insert_iteratorstd::insert_iterator< _Container >::operator++ (int)
 
constexpr move_iterator std::move_iterator< _Iterator >::operator++ (int)
 
constexpr __normal_iterator __gnu_cxx::__normal_iterator< _Iterator, _Container >::operator++ (int) noexcept
 
constexpr reverse_iteratorstd::reverse_iterator< _Iterator >::operator+= (difference_type __n)
 
constexpr move_iteratorstd::move_iterator< _Iterator >::operator+= (difference_type __n)
 
constexpr __normal_iterator & __gnu_cxx::__normal_iterator< _Iterator, _Container >::operator+= (difference_type __n) noexcept
 
template<typename _Iterator , typename _Container >
constexpr __normal_iterator< _Iterator, _Container >::difference_type __gnu_cxx::operator- (const __normal_iterator< _Iterator, _Container > &__lhs, const __normal_iterator< _Iterator, _Container > &__rhs) noexcept
 
template<typename _IteratorL , typename _IteratorR , typename _Container >
constexpr auto __gnu_cxx::operator- (const __normal_iterator< _IteratorL, _Container > &__lhs, const __normal_iterator< _IteratorR, _Container > &__rhs) noexcept -> decltype(__lhs.base() - __rhs.base())
 
template<typename _IteratorL , typename _IteratorR >
constexpr auto std::operator- (const move_iterator< _IteratorL > &__x, const move_iterator< _IteratorR > &__y) -> decltype(__x.base() - __y.base())
 
template<typename _IteratorL , typename _IteratorR >
constexpr auto std::operator- (const reverse_iterator< _IteratorL > &__x, const reverse_iterator< _IteratorR > &__y) -> decltype(__y.base() - __x.base())
 
constexpr reverse_iterator std::reverse_iterator< _Iterator >::operator- (difference_type __n) const
 
constexpr move_iterator std::move_iterator< _Iterator >::operator- (difference_type __n) const
 
constexpr __normal_iterator __gnu_cxx::__normal_iterator< _Iterator, _Container >::operator- (difference_type __n) const noexcept
 
constexpr reverse_iteratorstd::reverse_iterator< _Iterator >::operator-- ()
 
constexpr move_iteratorstd::move_iterator< _Iterator >::operator-- ()
 
constexpr __normal_iterator & __gnu_cxx::__normal_iterator< _Iterator, _Container >::operator-- () noexcept
 
constexpr reverse_iterator std::reverse_iterator< _Iterator >::operator-- (int)
 
constexpr move_iterator std::move_iterator< _Iterator >::operator-- (int)
 
constexpr __normal_iterator __gnu_cxx::__normal_iterator< _Iterator, _Container >::operator-- (int) noexcept
 
constexpr reverse_iteratorstd::reverse_iterator< _Iterator >::operator-= (difference_type __n)
 
constexpr move_iteratorstd::move_iterator< _Iterator >::operator-= (difference_type __n)
 
constexpr __normal_iterator & __gnu_cxx::__normal_iterator< _Iterator, _Container >::operator-= (difference_type __n) noexcept
 
const _Tp * std::istream_iterator< _Tp, _CharT, _Traits, _Dist >::operator-> () const
 
constexpr pointer std::reverse_iterator< _Iterator >::operator-> () const
 
constexpr pointer std::move_iterator< _Iterator >::operator-> () const
 
constexpr pointer __gnu_cxx::__normal_iterator< _Iterator, _Container >::operator-> () const noexcept
 
template<typename _Iterator , typename _Container >
constexpr bool __gnu_cxx::operator< (const __normal_iterator< _Iterator, _Container > &__lhs, const __normal_iterator< _Iterator, _Container > &__rhs) noexcept
 
template<typename _IteratorL , typename _IteratorR , typename _Container >
constexpr bool __gnu_cxx::operator< (const __normal_iterator< _IteratorL, _Container > &__lhs, const __normal_iterator< _IteratorR, _Container > &__rhs) noexcept
 
template<typename _Iterator >
constexpr bool std::operator< (const move_iterator< _Iterator > &__x, const move_iterator< _Iterator > &__y)
 
template<typename _IteratorL , typename _IteratorR >
constexpr bool std::operator< (const move_iterator< _IteratorL > &__x, const move_iterator< _IteratorR > &__y)
 
template<typename _Iterator >
constexpr bool std::operator< (const reverse_iterator< _Iterator > &__x, const reverse_iterator< _Iterator > &__y)
 
template<typename _IteratorL , typename _IteratorR >
constexpr bool std::operator< (const reverse_iterator< _IteratorL > &__x, const reverse_iterator< _IteratorR > &__y)
 
template<typename _Iterator , typename _Container >
constexpr bool __gnu_cxx::operator<= (const __normal_iterator< _Iterator, _Container > &__lhs, const __normal_iterator< _Iterator, _Container > &__rhs) noexcept
 
template<typename _IteratorL , typename _IteratorR , typename _Container >
constexpr bool __gnu_cxx::operator<= (const __normal_iterator< _IteratorL, _Container > &__lhs, const __normal_iterator< _IteratorR, _Container > &__rhs) noexcept
 
template<typename _Iterator >
constexpr bool std::operator<= (const move_iterator< _Iterator > &__x, const move_iterator< _Iterator > &__y)
 
template<typename _IteratorL , typename _IteratorR >
constexpr bool std::operator<= (const move_iterator< _IteratorL > &__x, const move_iterator< _IteratorR > &__y)
 
template<typename _Iterator >
constexpr bool std::operator<= (const reverse_iterator< _Iterator > &__x, const reverse_iterator< _Iterator > &__y)
 
template<typename _IteratorL , typename _IteratorR >
constexpr bool std::operator<= (const reverse_iterator< _IteratorL > &__x, const reverse_iterator< _IteratorR > &__y)
 
ostreambuf_iteratorstd::ostreambuf_iterator< _CharT, _Traits >::operator= (_CharT __c)
 
ostream_iteratorstd::ostream_iterator< _Tp, _CharT, _Traits >::operator= (const _Tp &__value)
 
istream_iteratorstd::istream_iterator< _Tp, _CharT, _Traits, _Dist >::operator= (const istream_iterator &)=default
 
istreambuf_iteratorstd::istreambuf_iterator< _CharT, _Traits >::operator= (const istreambuf_iterator &) noexcept=default
 
ostream_iteratorstd::ostream_iterator< _Tp, _CharT, _Traits >::operator= (const ostream_iterator &)=default
 
reverse_iteratorstd::reverse_iterator< _Iterator >::operator= (const reverse_iterator &)=default
 
back_insert_iteratorstd::back_insert_iterator< _Container >::operator= (const typename _Container::value_type &__value)
 
front_insert_iteratorstd::front_insert_iterator< _Container >::operator= (const typename _Container::value_type &__value)
 
insert_iteratorstd::insert_iterator< _Container >::operator= (const typename _Container::value_type &__value)
 
back_insert_iteratorstd::back_insert_iterator< _Container >::operator= (typename _Container::value_type &&__value)
 
front_insert_iteratorstd::front_insert_iterator< _Container >::operator= (typename _Container::value_type &&__value)
 
insert_iteratorstd::insert_iterator< _Container >::operator= (typename _Container::value_type &&__value)
 
template<typename _Iterator , typename _Container >
constexpr bool __gnu_cxx::operator== (const __normal_iterator< _Iterator, _Container > &__lhs, const __normal_iterator< _Iterator, _Container > &__rhs) noexcept
 
template<typename _IteratorL , typename _IteratorR , typename _Container >
constexpr bool __gnu_cxx::operator== (const __normal_iterator< _IteratorL, _Container > &__lhs, const __normal_iterator< _IteratorR, _Container > &__rhs) noexcept
 
template<typename _CharT , typename _Traits >
bool std::operator== (const istreambuf_iterator< _CharT, _Traits > &__a, const istreambuf_iterator< _CharT, _Traits > &__b)
 
template<typename _Iterator >
constexpr bool std::operator== (const move_iterator< _Iterator > &__x, const move_iterator< _Iterator > &__y)
 
template<typename _IteratorL , typename _IteratorR >
constexpr bool std::operator== (const move_iterator< _IteratorL > &__x, const move_iterator< _IteratorR > &__y)
 
template<typename _Iterator >
constexpr bool std::operator== (const reverse_iterator< _Iterator > &__x, const reverse_iterator< _Iterator > &__y)
 
template<typename _IteratorL , typename _IteratorR >
constexpr bool std::operator== (const reverse_iterator< _IteratorL > &__x, const reverse_iterator< _IteratorR > &__y)
 
template<typename _Iterator , typename _Container >
constexpr bool __gnu_cxx::operator> (const __normal_iterator< _Iterator, _Container > &__lhs, const __normal_iterator< _Iterator, _Container > &__rhs) noexcept
 
template<typename _IteratorL , typename _IteratorR , typename _Container >
constexpr bool __gnu_cxx::operator> (const __normal_iterator< _IteratorL, _Container > &__lhs, const __normal_iterator< _IteratorR, _Container > &__rhs) noexcept
 
template<typename _Iterator >
constexpr bool std::operator> (const move_iterator< _Iterator > &__x, const move_iterator< _Iterator > &__y)
 
template<typename _IteratorL , typename _IteratorR >
constexpr bool std::operator> (const move_iterator< _IteratorL > &__x, const move_iterator< _IteratorR > &__y)
 
template<typename _Iterator >
constexpr bool std::operator> (const reverse_iterator< _Iterator > &__x, const reverse_iterator< _Iterator > &__y)
 
template<typename _IteratorL , typename _IteratorR >
constexpr bool std::operator> (const reverse_iterator< _IteratorL > &__x, const reverse_iterator< _IteratorR > &__y)
 
template<typename _Iterator , typename _Container >
constexpr bool __gnu_cxx::operator>= (const __normal_iterator< _Iterator, _Container > &__lhs, const __normal_iterator< _Iterator, _Container > &__rhs) noexcept
 
template<typename _IteratorL , typename _IteratorR , typename _Container >
constexpr bool __gnu_cxx::operator>= (const __normal_iterator< _IteratorL, _Container > &__lhs, const __normal_iterator< _IteratorR, _Container > &__rhs) noexcept
 
template<typename _Iterator >
constexpr bool std::operator>= (const move_iterator< _Iterator > &__x, const move_iterator< _Iterator > &__y)
 
template<typename _IteratorL , typename _IteratorR >
constexpr bool std::operator>= (const move_iterator< _IteratorL > &__x, const move_iterator< _IteratorR > &__y)
 
template<typename _Iterator >
constexpr bool std::operator>= (const reverse_iterator< _Iterator > &__x, const reverse_iterator< _Iterator > &__y)
 
template<typename _IteratorL , typename _IteratorR >
constexpr bool std::operator>= (const reverse_iterator< _IteratorL > &__x, const reverse_iterator< _IteratorR > &__y)
 
constexpr reference std::reverse_iterator< _Iterator >::operator[] (difference_type __n) const
 
constexpr reference std::move_iterator< _Iterator >::operator[] (difference_type __n) const
 
constexpr reference __gnu_cxx::__normal_iterator< _Iterator, _Container >::operator[] (difference_type __n) const noexcept
 

Variables

_Iterator __gnu_cxx::__normal_iterator< _Iterator, _Container >::_M_current
 
_Container * std::back_insert_iterator< _Container >::container
 
_Container * std::front_insert_iterator< _Container >::container
 
_Container * std::insert_iterator< _Container >::container
 
_Iterator std::reverse_iterator< _Iterator >::current
 
_Container::iterator std::insert_iterator< _Container >::iter
 

Friends

template<bool _IsMove, typename _CharT2 >
__gnu_cxx::__enable_if< __is_char< _CharT2 >::__value, _CharT2 * >::__type std::istreambuf_iterator< _CharT, _Traits >::__copy_move_a2 (istreambuf_iterator< _CharT2 >, istreambuf_iterator< _CharT2 >, _CharT2 *)
 
template<typename _CharT2 , typename _Size >
__enable_if_t< __is_char< _CharT2 >::__value, _CharT2 * > std::istreambuf_iterator< _CharT, _Traits >::__copy_n_a (istreambuf_iterator< _CharT2 >, _Size, _CharT2 *)
 
template<typename _CharT2 , typename _Distance >
__gnu_cxx::__enable_if< __is_char< _CharT2 >::__value, void >::__type std::istreambuf_iterator< _CharT, _Traits >::advance (istreambuf_iterator< _CharT2 > &, _Distance)
 
template<typename _CharT2 >
__gnu_cxx::__enable_if< __is_char< _CharT2 >::__value, ostreambuf_iterator< _CharT2 > >::__type std::istreambuf_iterator< _CharT, _Traits >::copy (istreambuf_iterator< _CharT2 >, istreambuf_iterator< _CharT2 >, ostreambuf_iterator< _CharT2 >)
 
template<typename _CharT2 >
__gnu_cxx::__enable_if< __is_char< _CharT2 >::__value, ostreambuf_iterator< _CharT2 > >::__type std::ostreambuf_iterator< _CharT, _Traits >::copy (istreambuf_iterator< _CharT2 >, istreambuf_iterator< _CharT2 >, ostreambuf_iterator< _CharT2 >)
 
template<typename _CharT2 >
__gnu_cxx::__enable_if< __is_char< _CharT2 >::__value, istreambuf_iterator< _CharT2 > >::__type std::istreambuf_iterator< _CharT, _Traits >::find (istreambuf_iterator< _CharT2 >, istreambuf_iterator< _CharT2 >, const _CharT2 &)
 
bool std::istream_iterator< _Tp, _CharT, _Traits, _Dist >::operator!= (const istream_iterator &__x, const istream_iterator &__y)
 
bool std::istream_iterator< _Tp, _CharT, _Traits, _Dist >::operator== (const istream_iterator &__x, const istream_iterator &__y)
 

Detailed Description

Abstractions for uniform iterating through various underlying types.

Typedef Documentation

◆ char_type [1/3]

template<typename _CharT , typename _Traits >
typedef _CharT std::istreambuf_iterator< _CharT, _Traits >::char_type

Public typedefs.

Definition at line 66 of file streambuf_iterator.h.

◆ char_type [2/3]

template<typename _Tp , typename _CharT = char, typename _Traits = char_traits<_CharT>>
typedef _CharT std::ostream_iterator< _Tp, _CharT, _Traits >::char_type

Public typedef.

Definition at line 185 of file stream_iterator.h.

◆ char_type [3/3]

template<typename _CharT , typename _Traits >
typedef _CharT std::ostreambuf_iterator< _CharT, _Traits >::char_type

Public typedefs.

Definition at line 249 of file streambuf_iterator.h.

◆ container_type [1/3]

template<typename _Container >
typedef _Container std::back_insert_iterator< _Container >::container_type

A nested typedef for the type of whatever container you used.

Definition at line 507 of file bits/stl_iterator.h.

◆ container_type [2/3]

template<typename _Container >
typedef _Container std::front_insert_iterator< _Container >::container_type

A nested typedef for the type of whatever container you used.

Definition at line 610 of file bits/stl_iterator.h.

◆ container_type [3/3]

template<typename _Container >
typedef _Container std::insert_iterator< _Container >::container_type

A nested typedef for the type of whatever container you used.

Definition at line 713 of file bits/stl_iterator.h.

Function Documentation

◆ back_insert_iterator()

template<typename _Container >
std::back_insert_iterator< _Container >::back_insert_iterator ( _Container &  __x)
inlineexplicit

The only way to create this iterator is with a container.

Definition at line 518 of file bits/stl_iterator.h.

◆ front_insert_iterator()

template<typename _Container >
std::front_insert_iterator< _Container >::front_insert_iterator ( _Container &  __x)
inlineexplicit

The only way to create this iterator is with a container.

Definition at line 620 of file bits/stl_iterator.h.

◆ insert_iterator()

template<typename _Container >
std::insert_iterator< _Container >::insert_iterator ( _Container &  __x,
typename _Container::iterator  __i 
)
inline

The only way to create this iterator is with a container and an initial position (a normal iterator into the container).

Definition at line 719 of file bits/stl_iterator.h.

◆ istream_iterator() [1/2]

template<typename _Tp , typename _CharT = char, typename _Traits = char_traits<_CharT>, typename _Dist = ptrdiff_t>
constexpr std::istream_iterator< _Tp, _CharT, _Traits, _Dist >::istream_iterator ( )
inlineconstexpr

Construct end of input stream iterator.

Definition at line 67 of file stream_iterator.h.

◆ istream_iterator() [2/2]

template<typename _Tp , typename _CharT = char, typename _Traits = char_traits<_CharT>, typename _Dist = ptrdiff_t>
std::istream_iterator< _Tp, _CharT, _Traits, _Dist >::istream_iterator ( istream_type __s)
inline

Construct start of input stream iterator.

Definition at line 71 of file stream_iterator.h.

◆ istreambuf_iterator() [1/3]

template<typename _CharT , typename _Traits >
constexpr std::istreambuf_iterator< _CharT, _Traits >::istreambuf_iterator ( )
inlineconstexprnoexcept

Construct end of input stream iterator.

Definition at line 115 of file streambuf_iterator.h.

◆ istreambuf_iterator() [2/3]

template<typename _CharT , typename _Traits >
std::istreambuf_iterator< _CharT, _Traits >::istreambuf_iterator ( istream_type __s)
inlinenoexcept

Construct start of input stream iterator.

Definition at line 130 of file streambuf_iterator.h.

◆ istreambuf_iterator() [3/3]

template<typename _CharT , typename _Traits >
std::istreambuf_iterator< _CharT, _Traits >::istreambuf_iterator ( streambuf_type __s)
inlinenoexcept

Construct start of streambuf iterator.

Definition at line 134 of file streambuf_iterator.h.

◆ ostream_iterator() [1/3]

template<typename _Tp , typename _CharT = char, typename _Traits = char_traits<_CharT>>
std::ostream_iterator< _Tp, _CharT, _Traits >::ostream_iterator ( const ostream_iterator< _Tp, _CharT, _Traits > &  __obj)
inline

Copy constructor.

Definition at line 218 of file stream_iterator.h.

◆ ostream_iterator() [2/3]

template<typename _Tp , typename _CharT = char, typename _Traits = char_traits<_CharT>>
std::ostream_iterator< _Tp, _CharT, _Traits >::ostream_iterator ( ostream_type __s)
inline

Construct from an ostream.

Definition at line 201 of file stream_iterator.h.

◆ ostream_iterator() [3/3]

template<typename _Tp , typename _CharT = char, typename _Traits = char_traits<_CharT>>
std::ostream_iterator< _Tp, _CharT, _Traits >::ostream_iterator ( ostream_type __s,
const _CharT *  __c 
)
inline

Construct from an ostream.

The delimiter string c is written to the stream after every Tp written to the stream. The delimiter is not copied, and thus must not be destroyed while this iterator is in use.

Parameters
__sUnderlying ostream to write to.
__cCharT delimiter string to insert.

Definition at line 214 of file stream_iterator.h.

◆ ostreambuf_iterator() [1/2]

template<typename _CharT , typename _Traits >
std::ostreambuf_iterator< _CharT, _Traits >::ostreambuf_iterator ( ostream_type __s)
inlinenoexcept

Construct output iterator from ostream.

Definition at line 274 of file streambuf_iterator.h.

◆ ostreambuf_iterator() [2/2]

template<typename _CharT , typename _Traits >
std::ostreambuf_iterator< _CharT, _Traits >::ostreambuf_iterator ( streambuf_type __s)
inlinenoexcept

Construct output iterator from streambuf.

Definition at line 278 of file streambuf_iterator.h.

◆ reverse_iterator() [1/4]

template<typename _Iterator >
constexpr std::reverse_iterator< _Iterator >::reverse_iterator ( )
inlineconstexpr

The default constructor value-initializes member current. If it is a pointer, that means it is zero-initialized.

Definition at line 136 of file bits/stl_iterator.h.

Referenced by std::reverse_iterator< _Iterator >::operator+(), and std::reverse_iterator< _Iterator >::operator-().

◆ reverse_iterator() [2/4]

template<typename _Iterator >
constexpr std::reverse_iterator< _Iterator >::reverse_iterator ( const reverse_iterator< _Iterator > &  __x)
inlineconstexpr

The copy constructor is normal.

Definition at line 148 of file bits/stl_iterator.h.

◆ reverse_iterator() [3/4]

template<typename _Iterator >
template<typename _Iter >
constexpr std::reverse_iterator< _Iterator >::reverse_iterator ( const reverse_iterator< _Iter > &  __x)
inlineconstexpr

A reverse_iterator across other types can be copied if the underlying iterator can be converted to the type of current.

Definition at line 161 of file bits/stl_iterator.h.

◆ reverse_iterator() [4/4]

template<typename _Iterator >
constexpr std::reverse_iterator< _Iterator >::reverse_iterator ( iterator_type  __x)
inlineexplicitconstexpr

This iterator will move in the opposite direction that x does.

Definition at line 142 of file bits/stl_iterator.h.

◆ back_inserter()

template<typename _Container >
back_insert_iterator<_Container> std::back_inserter ( _Container &  __x)
inline
Parameters
__xA container of arbitrary type.
Returns
An instance of back_insert_iterator working on __x.

This wrapper function helps in creating back_insert_iterator instances. Typing the name of the iterator requires knowing the precise full type of the container, which can be tedious and impedes generic programming. Using this function lets you take advantage of automatic template parameter deduction, making the compiler match the correct types for you.

Definition at line 584 of file bits/stl_iterator.h.

Referenced by std::match_results< _Bi_iter >::format(), and std::sub_match< _Bi_iter >::regex_replace().

◆ base()

template<typename _Iterator >
constexpr iterator_type std::reverse_iterator< _Iterator >::base ( ) const
inlineconstexpr
Returns
current, the iterator used for underlying work.

Definition at line 168 of file bits/stl_iterator.h.

Referenced by std::operator==().

◆ equal()

template<typename _CharT , typename _Traits >
bool std::istreambuf_iterator< _CharT, _Traits >::equal ( const istreambuf_iterator< _CharT, _Traits > &  __b) const
inline

Return true both iterators are end or both are not end.

Definition at line 194 of file streambuf_iterator.h.

◆ failed()

template<typename _CharT , typename _Traits >
bool std::ostreambuf_iterator< _CharT, _Traits >::failed ( ) const
inlinenoexcept

Return true if previous operator=() failed.

Definition at line 308 of file streambuf_iterator.h.

◆ front_inserter()

template<typename _Container >
front_insert_iterator<_Container> std::front_inserter ( _Container &  __x)
inline
Parameters
__xA container of arbitrary type.
Returns
An instance of front_insert_iterator working on x.

This wrapper function helps in creating front_insert_iterator instances. Typing the name of the iterator requires knowing the precise full type of the container, which can be tedious and impedes generic programming. Using this function lets you take advantage of automatic template parameter deduction, making the compiler match the correct types for you.

Definition at line 686 of file bits/stl_iterator.h.

◆ inserter()

template<typename _Container , typename _Iterator >
insert_iterator<_Container> std::inserter ( _Container &  __x,
_Iterator  __i 
)
inline
Parameters
__xA container of arbitrary type.
__iAn iterator into the container.
Returns
An instance of insert_iterator working on __x.

This wrapper function helps in creating insert_iterator instances. Typing the name of the iterator requires knowing the precise full type of the container, which can be tedious and impedes generic programming. Using this function lets you take advantage of automatic template parameter deduction, making the compiler match the correct types for you.

Definition at line 801 of file bits/stl_iterator.h.

◆ make_reverse_iterator()

template<typename _Iterator >
constexpr reverse_iterator<_Iterator> std::make_reverse_iterator ( _Iterator  __i)
inlineconstexpr

Generator function for reverse_iterator.

Definition at line 451 of file bits/stl_iterator.h.

◆ operator*() [1/6]

template<typename _CharT , typename _Traits >
ostreambuf_iterator& std::ostreambuf_iterator< _CharT, _Traits >::operator* ( )
inline

Return *this.

Definition at line 293 of file streambuf_iterator.h.

◆ operator*() [2/6]

template<typename _Container >
back_insert_iterator& std::back_insert_iterator< _Container >::operator* ( )
inline

Simply returns *this.

Definition at line 557 of file bits/stl_iterator.h.

◆ operator*() [3/6]

template<typename _Container >
front_insert_iterator& std::front_insert_iterator< _Container >::operator* ( )
inline

Simply returns *this.

Definition at line 659 of file bits/stl_iterator.h.

◆ operator*() [4/6]

template<typename _Container >
insert_iterator& std::insert_iterator< _Container >::operator* ( )
inline

Simply returns *this.

Definition at line 773 of file bits/stl_iterator.h.

◆ operator*() [5/6]

template<typename _CharT , typename _Traits >
char_type std::istreambuf_iterator< _CharT, _Traits >::operator* ( ) const
inline

Return the current character pointed to by iterator. This returns streambuf.sgetc(). It cannot be assigned. NB: The result of operator*() on an end of stream is undefined.

Definition at line 146 of file streambuf_iterator.h.

◆ operator*() [6/6]

template<typename _Iterator >
constexpr reference std::reverse_iterator< _Iterator >::operator* ( ) const
inlineconstexpr
Returns
A reference to the value at –current

This requires that –current is dereferenceable.

Warning
This implementation requires that for an iterator of the underlying iterator type, x, a reference obtained by *x remains valid after x has been modified or destroyed. This is a bug: http://gcc.gnu.org/PR51823

Definition at line 182 of file bits/stl_iterator.h.

◆ operator+()

template<typename _Iterator >
constexpr reverse_iterator std::reverse_iterator< _Iterator >::operator+ ( difference_type  __n) const
inlineconstexpr
Returns
A reverse_iterator that refers to current - __n

The underlying iterator must be a Random Access Iterator.

Definition at line 263 of file bits/stl_iterator.h.

References std::reverse_iterator< _Iterator >::reverse_iterator().

◆ operator++() [1/12]

template<typename _CharT , typename _Traits >
istreambuf_iterator& std::istreambuf_iterator< _CharT, _Traits >::operator++ ( )
inline

Advance the iterator. Calls streambuf.sbumpc().

Definition at line 162 of file streambuf_iterator.h.

◆ operator++() [2/12]

template<typename _Iterator >
constexpr reverse_iterator& std::reverse_iterator< _Iterator >::operator++ ( )
inlineconstexpr
Returns
*this

Decrements the underlying iterator.

Definition at line 213 of file bits/stl_iterator.h.

◆ operator++() [3/12]

template<typename _CharT , typename _Traits >
ostreambuf_iterator& std::ostreambuf_iterator< _CharT, _Traits >::operator++ ( )
inline

Return *this.

Definition at line 303 of file streambuf_iterator.h.

◆ operator++() [4/12]

template<typename _Container >
back_insert_iterator& std::back_insert_iterator< _Container >::operator++ ( )
inline

Simply returns *this. (This iterator does not move.)

Definition at line 562 of file bits/stl_iterator.h.

◆ operator++() [5/12]

template<typename _Container >
front_insert_iterator& std::front_insert_iterator< _Container >::operator++ ( )
inline

Simply returns *this. (This iterator does not move.)

Definition at line 664 of file bits/stl_iterator.h.

◆ operator++() [6/12]

template<typename _Container >
insert_iterator& std::insert_iterator< _Container >::operator++ ( )
inline

Simply returns *this. (This iterator does not move.)

Definition at line 778 of file bits/stl_iterator.h.

◆ operator++() [7/12]

template<typename _CharT , typename _Traits >
istreambuf_iterator std::istreambuf_iterator< _CharT, _Traits >::operator++ ( int  )
inline

Advance the iterator. Calls streambuf.sbumpc().

Definition at line 176 of file streambuf_iterator.h.

◆ operator++() [8/12]

template<typename _Iterator >
constexpr reverse_iterator std::reverse_iterator< _Iterator >::operator++ ( int  )
inlineconstexpr
Returns
The original value of *this

Decrements the underlying iterator.

Definition at line 225 of file bits/stl_iterator.h.

◆ operator++() [9/12]

template<typename _CharT , typename _Traits >
ostreambuf_iterator& std::ostreambuf_iterator< _CharT, _Traits >::operator++ ( int  )
inline

Return *this.

Definition at line 298 of file streambuf_iterator.h.

◆ operator++() [10/12]

template<typename _Container >
back_insert_iterator std::back_insert_iterator< _Container >::operator++ ( int  )
inline

Simply returns *this. (This iterator does not move.)

Definition at line 567 of file bits/stl_iterator.h.

◆ operator++() [11/12]

template<typename _Container >
front_insert_iterator std::front_insert_iterator< _Container >::operator++ ( int  )
inline

Simply returns *this. (This iterator does not move.)

Definition at line 669 of file bits/stl_iterator.h.

◆ operator++() [12/12]

template<typename _Container >
insert_iterator& std::insert_iterator< _Container >::operator++ ( int  )
inline

Simply returns *this. (This iterator does not move.)

Definition at line 783 of file bits/stl_iterator.h.

◆ operator+=()

template<typename _Iterator >
constexpr reverse_iterator& std::reverse_iterator< _Iterator >::operator+= ( difference_type  __n)
inlineconstexpr
Returns
*this

Moves the underlying iterator backwards __n steps. The underlying iterator must be a Random Access Iterator.

Definition at line 273 of file bits/stl_iterator.h.

◆ operator-()

template<typename _Iterator >
constexpr reverse_iterator std::reverse_iterator< _Iterator >::operator- ( difference_type  __n) const
inlineconstexpr
Returns
A reverse_iterator that refers to current - __n

The underlying iterator must be a Random Access Iterator.

Definition at line 285 of file bits/stl_iterator.h.

References std::reverse_iterator< _Iterator >::reverse_iterator().

◆ operator--() [1/2]

template<typename _Iterator >
constexpr reverse_iterator& std::reverse_iterator< _Iterator >::operator-- ( )
inlineconstexpr
Returns
*this

Increments the underlying iterator.

Definition at line 238 of file bits/stl_iterator.h.

◆ operator--() [2/2]

template<typename _Iterator >
constexpr reverse_iterator std::reverse_iterator< _Iterator >::operator-- ( int  )
inlineconstexpr
Returns
A reverse_iterator with the previous value of *this

Increments the underlying iterator.

Definition at line 250 of file bits/stl_iterator.h.

◆ operator-=()

template<typename _Iterator >
constexpr reverse_iterator& std::reverse_iterator< _Iterator >::operator-= ( difference_type  __n)
inlineconstexpr
Returns
*this

Moves the underlying iterator forwards __n steps. The underlying iterator must be a Random Access Iterator.

Definition at line 295 of file bits/stl_iterator.h.

◆ operator->()

template<typename _Iterator >
constexpr pointer std::reverse_iterator< _Iterator >::operator-> ( ) const
inlineconstexpr
Returns
A pointer to the value at –current

This requires that –current is dereferenceable.

Definition at line 194 of file bits/stl_iterator.h.

◆ operator=() [1/5]

template<typename _CharT , typename _Traits >
ostreambuf_iterator& std::ostreambuf_iterator< _CharT, _Traits >::operator= ( _CharT  __c)
inline

Write character to streambuf. Calls streambuf.sputc().

Definition at line 283 of file streambuf_iterator.h.

References std::basic_streambuf< _CharT, _Traits >::sputc().

◆ operator=() [2/5]

template<typename _Tp , typename _CharT = char, typename _Traits = char_traits<_CharT>>
ostream_iterator& std::ostream_iterator< _Tp, _CharT, _Traits >::operator= ( const _Tp &  __value)
inline

Writes value to underlying ostream using operator<<. If constructed with delimiter string, writes delimiter to ostream.

Definition at line 228 of file stream_iterator.h.

◆ operator=() [3/5]

template<typename _Container >
back_insert_iterator& std::back_insert_iterator< _Container >::operator= ( const typename _Container::value_type &  __value)
inline
Parameters
__valueAn instance of whatever type container_type::const_reference is; presumably a reference-to-const T for container<T>.
Returns
This iterator, for chained operations.

This kind of iterator doesn't really have a position in the container (you can think of the position as being permanently at the end, if you like). Assigning a value to the iterator will always append the value to the end of the container.

Definition at line 541 of file bits/stl_iterator.h.

◆ operator=() [4/5]

template<typename _Container >
front_insert_iterator& std::front_insert_iterator< _Container >::operator= ( const typename _Container::value_type &  __value)
inline
Parameters
__valueAn instance of whatever type container_type::const_reference is; presumably a reference-to-const T for container<T>.
Returns
This iterator, for chained operations.

This kind of iterator doesn't really have a position in the container (you can think of the position as being permanently at the front, if you like). Assigning a value to the iterator will always prepend the value to the front of the container.

Definition at line 643 of file bits/stl_iterator.h.

◆ operator=() [5/5]

template<typename _Container >
insert_iterator& std::insert_iterator< _Container >::operator= ( const typename _Container::value_type &  __value)
inline
Parameters
__valueAn instance of whatever type container_type::const_reference is; presumably a reference-to-const T for container<T>.
Returns
This iterator, for chained operations.

This kind of iterator maintains its own position in the container. Assigning a value to the iterator will insert the value into the container at the place before the iterator.

The position is maintained such that subsequent assignments will insert values immediately after one another. For example,

// vector v contains A and Z
insert_iterator i (v, ++v.begin());
i = 1;
i = 2;
i = 3;
// vector v contains A, 1, 2, 3, and Z

Definition at line 755 of file bits/stl_iterator.h.

◆ operator==()

template<typename _Iterator >
constexpr bool std::operator== ( const reverse_iterator< _Iterator > &  __x,
const reverse_iterator< _Iterator > &  __y 
)
inlineconstexpr
Parameters
__xA reverse_iterator.
__yA reverse_iterator.
Returns
A simple bool.

Reverse iterators forward many operations to their underlying base() iterators. Others are implemented in terms of one another.

Definition at line 334 of file bits/stl_iterator.h.

References std::reverse_iterator< _Iterator >::base().

◆ operator[]()

template<typename _Iterator >
constexpr reference std::reverse_iterator< _Iterator >::operator[] ( difference_type  __n) const
inlineconstexpr
Returns
The value at current - __n - 1

The underlying iterator must be a Random Access Iterator.

Definition at line 307 of file bits/stl_iterator.h.

Friends

◆ operator!=

template<typename _Tp , typename _CharT = char, typename _Traits = char_traits<_CharT>, typename _Dist = ptrdiff_t>
bool operator!= ( const istream_iterator< _Tp, _CharT, _Traits, _Dist > &  __x,
const istream_iterator< _Tp, _CharT, _Traits, _Dist > &  __y 
)
friend

Return true if the iterators refer to different streams, or if one is at end-of-stream and the other is not.

Definition at line 153 of file stream_iterator.h.

◆ operator==

template<typename _Tp , typename _CharT = char, typename _Traits = char_traits<_CharT>, typename _Dist = ptrdiff_t>
bool operator== ( const istream_iterator< _Tp, _CharT, _Traits, _Dist > &  __x,
const istream_iterator< _Tp, _CharT, _Traits, _Dist > &  __y 
)
friend

Return true if the iterators refer to the same stream, or are both at end-of-stream.

Definition at line 147 of file stream_iterator.h.

std::insert_iterator::insert_iterator
insert_iterator(_Container &__x, typename _Container::iterator __i)
Definition: bits/stl_iterator.h:719