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

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) requires _Const
 
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 friend 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.

Friends And Related Function Documentation

◆ operator==

template<bool _Const, typename _Ptr >
constexpr friend 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: