libstdc++
std::_List_iterator< _Tp > Struct Template Reference

#include <stl_list.h>

Public Types

typedef _List_node< _Tp > _Node
typedef _List_iterator< _Tp > _Self
typedef ptrdiff_t difference_type
typedef std::bidirectional_iterator_tag iterator_category
typedef _Tp * pointer
typedef _Tp & reference
typedef _Tp value_type

Public Member Functions

 _List_iterator (__detail::_List_node_base *__x) noexcept
_Self _M_const_cast () const noexcept
reference operator* () const noexcept
_Self & operator++ () noexcept
_Self operator++ (int) noexcept
_Self & operator-- () noexcept
_Self operator-- (int) noexcept
pointer operator-> () const noexcept

Public Attributes

__detail::_List_node_base_M_node

Friends

bool operator!= (const _Self &__x, const _Self &__y) noexcept
bool operator== (const _Self &__x, const _Self &__y) noexcept

Detailed Description

template<typename _Tp>
struct std::_List_iterator< _Tp >

A list::iterator.

All the functions are op overloads.

Definition at line 186 of file stl_list.h.

Member Typedef Documentation

◆ _Node

template<typename _Tp>
typedef _List_node<_Tp> std::_List_iterator< _Tp >::_Node

Definition at line 189 of file stl_list.h.

◆ _Self

template<typename _Tp>
typedef _List_iterator<_Tp> std::_List_iterator< _Tp >::_Self

Definition at line 188 of file stl_list.h.

◆ difference_type

template<typename _Tp>
typedef ptrdiff_t std::_List_iterator< _Tp >::difference_type

Definition at line 191 of file stl_list.h.

◆ iterator_category

template<typename _Tp>
typedef std::bidirectional_iterator_tag std::_List_iterator< _Tp >::iterator_category

Definition at line 192 of file stl_list.h.

◆ pointer

template<typename _Tp>
typedef _Tp* std::_List_iterator< _Tp >::pointer

Definition at line 194 of file stl_list.h.

◆ reference

template<typename _Tp>
typedef _Tp& std::_List_iterator< _Tp >::reference

Definition at line 195 of file stl_list.h.

◆ value_type

template<typename _Tp>
typedef _Tp std::_List_iterator< _Tp >::value_type

Definition at line 193 of file stl_list.h.

Constructor & Destructor Documentation

◆ _List_iterator() [1/2]

template<typename _Tp>
std::_List_iterator< _Tp >::_List_iterator ( )
inlinenoexcept

Definition at line 197 of file stl_list.h.

◆ _List_iterator() [2/2]

template<typename _Tp>
std::_List_iterator< _Tp >::_List_iterator ( __detail::_List_node_base * __x)
inlineexplicitnoexcept

Definition at line 201 of file stl_list.h.

Member Function Documentation

◆ _M_const_cast()

template<typename _Tp>
_Self std::_List_iterator< _Tp >::_M_const_cast ( ) const
inlinenoexcept

Definition at line 205 of file stl_list.h.

◆ operator*()

template<typename _Tp>
reference std::_List_iterator< _Tp >::operator* ( ) const
inlinenoexcept

Definition at line 210 of file stl_list.h.

◆ operator++() [1/2]

template<typename _Tp>
_Self & std::_List_iterator< _Tp >::operator++ ( )
inlinenoexcept

Definition at line 218 of file stl_list.h.

◆ operator++() [2/2]

template<typename _Tp>
_Self std::_List_iterator< _Tp >::operator++ ( int )
inlinenoexcept

Definition at line 225 of file stl_list.h.

◆ operator--() [1/2]

template<typename _Tp>
_Self & std::_List_iterator< _Tp >::operator-- ( )
inlinenoexcept

Definition at line 233 of file stl_list.h.

◆ operator--() [2/2]

template<typename _Tp>
_Self std::_List_iterator< _Tp >::operator-- ( int )
inlinenoexcept

Definition at line 240 of file stl_list.h.

◆ operator->()

template<typename _Tp>
pointer std::_List_iterator< _Tp >::operator-> ( ) const
inlinenoexcept

Definition at line 214 of file stl_list.h.

◆ operator!=

template<typename _Tp>
bool operator!= ( const _Self & __x,
const _Self & __y )
friend

Definition at line 253 of file stl_list.h.

◆ operator==

template<typename _Tp>
bool operator== ( const _Self & __x,
const _Self & __y )
friend

Definition at line 248 of file stl_list.h.

Member Data Documentation

◆ _M_node

template<typename _Tp>
__detail::_List_node_base* std::_List_iterator< _Tp >::_M_node

Definition at line 258 of file stl_list.h.


The documentation for this struct was generated from the following files: