libstdc++
Public Types | Public Member Functions | Friends | List of all members
std::__fwdlist::_Iterator< _Const, _Ptr > Class Template Reference

#include <forward_list.h>

Public Types

using difference_type = ptrdiff_t
 
using iterator_category = forward_iterator_tag
 
using pointer = __maybe_const< value_type > *
 
using reference = __maybe_const< value_type > &
 
using value_type = typename pointer_traits< _Ptr >::element_type
 

Public Member Functions

constexpr _Iterator (_Base_ptr __x) noexcept
 
 _Iterator (const _Iterator &)=default
 
constexpr _Iterator (const _Iterator< false, _Ptr > &__i)
 
constexpr reference operator* () const noexcept
 
constexpr _Iteratoroperator++ () noexcept
 
constexpr _Iterator operator++ (int) noexcept
 
constexpr pointer operator-> () const noexcept
 
_Iteratoroperator= (const _Iterator &)=default
 

Friends

template<typename _Tp , typename _Allocator >
struct ::_Fwd_list_base
 
template<typename _Tp , typename _Allocator >
class ::forward_list
 
constexpr bool operator== (const _Iterator &__x, const _Iterator &__y) noexcept
 

Detailed Description

template<bool _Const, typename _Ptr>
class std::__fwdlist::_Iterator< _Const, _Ptr >

A forward_list iterator when the allocator uses fancy pointers.

Definition at line 455 of file forward_list.h.

Member Typedef Documentation

◆ difference_type

template<bool _Const, typename _Ptr >
using std::__fwdlist::_Iterator< _Const, _Ptr >::difference_type = ptrdiff_t

Definition at line 466 of file forward_list.h.

◆ iterator_category

template<bool _Const, typename _Ptr >
using std::__fwdlist::_Iterator< _Const, _Ptr >::iterator_category = forward_iterator_tag

Definition at line 467 of file forward_list.h.

◆ pointer

template<bool _Const, typename _Ptr >
using std::__fwdlist::_Iterator< _Const, _Ptr >::pointer = __maybe_const<value_type>*

Definition at line 468 of file forward_list.h.

◆ reference

template<bool _Const, typename _Ptr >
using std::__fwdlist::_Iterator< _Const, _Ptr >::reference = __maybe_const<value_type>&

Definition at line 469 of file forward_list.h.

◆ value_type

template<bool _Const, typename _Ptr >
using std::__fwdlist::_Iterator< _Const, _Ptr >::value_type = typename pointer_traits<_Ptr>::element_type

Definition at line 465 of file forward_list.h.

Constructor & Destructor Documentation

◆ _Iterator() [1/3]

template<bool _Const, typename _Ptr >
constexpr std::__fwdlist::_Iterator< _Const, _Ptr >::_Iterator ( )
inlineconstexprnoexcept

Definition at line 471 of file forward_list.h.

◆ _Iterator() [2/3]

template<bool _Const, typename _Ptr >
constexpr std::__fwdlist::_Iterator< _Const, _Ptr >::_Iterator ( const _Iterator< false, _Ptr > &  __i)
inlineconstexpr

Definition at line 478 of file forward_list.h.

◆ _Iterator() [3/3]

template<bool _Const, typename _Ptr >
constexpr std::__fwdlist::_Iterator< _Const, _Ptr >::_Iterator ( _Base_ptr  __x)
inlineexplicitconstexprnoexcept

Definition at line 488 of file forward_list.h.

Member Function Documentation

◆ operator*()

template<bool _Const, typename _Ptr >
constexpr reference std::__fwdlist::_Iterator< _Const, _Ptr >::operator* ( ) const
inlineconstexprnoexcept

Definition at line 493 of file forward_list.h.

◆ operator++() [1/2]

template<bool _Const, typename _Ptr >
constexpr _Iterator & std::__fwdlist::_Iterator< _Const, _Ptr >::operator++ ( )
inlineconstexprnoexcept

Definition at line 502 of file forward_list.h.

◆ operator++() [2/2]

template<bool _Const, typename _Ptr >
constexpr _Iterator std::__fwdlist::_Iterator< _Const, _Ptr >::operator++ ( int  )
inlineconstexprnoexcept

Definition at line 509 of file forward_list.h.

◆ operator->()

template<bool _Const, typename _Ptr >
constexpr pointer std::__fwdlist::_Iterator< _Const, _Ptr >::operator-> ( ) const
inlineconstexprnoexcept

Definition at line 498 of file forward_list.h.

Friends And Related Function Documentation

◆ ::_Fwd_list_base

template<bool _Const, typename _Ptr >
template<typename _Tp , typename _Allocator >
friend struct ::_Fwd_list_base
friend

Definition at line 538 of file forward_list.h.

◆ ::forward_list

template<bool _Const, typename _Ptr >
template<typename _Tp , typename _Allocator >
friend class ::forward_list
friend

Definition at line 536 of file forward_list.h.

◆ operator==

template<bool _Const, typename _Ptr >
constexpr bool operator== ( const _Iterator< _Const, _Ptr > &  __x,
const _Iterator< _Const, _Ptr > &  __y 
)
friend

Forward list iterator equality comparison.

Definition at line 521 of file forward_list.h.


The documentation for this class was generated from the following file: