plugify 1.0.0.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Protected Attributes | Friends | List of all members
plg::vector_const_iterator< Allocator > Struct Template Reference

Public Types

using allocator_traits = std::allocator_traits< Allocator >
 
using iterator_category = std::random_access_iterator_tag
 
using value_type = typename allocator_traits::value_type
 
using difference_type = std::ptrdiff_t
 
using pointer = typename allocator_traits::const_pointer
 
using reference = const value_type &
 

Public Member Functions

constexpr vector_const_iterator (const vector_const_iterator &other)=default
 
constexpr vector_const_iterator (vector_const_iterator &&other)=default
 
constexpr vector_const_iterator (pointer ptr)
 
constexpr vector_const_iterator (const vector_iterator< Allocator > &other)
 
constexpr vector_const_iteratoroperator= (const vector_const_iterator &other)=default
 
constexpr vector_const_iteratoroperator= (vector_const_iterator &&other)=default
 
constexpr reference operator* () const noexcept
 
constexpr pointer operator-> () const noexcept
 
constexpr vector_const_iteratoroperator++ () noexcept
 
constexpr vector_const_iterator operator++ (int) const noexcept
 
constexpr vector_const_iteratoroperator-- () noexcept
 
constexpr vector_const_iterator operator-- (int) const noexcept
 
constexpr vector_const_iteratoroperator+= (const difference_type n) noexcept
 
constexpr vector_const_iterator operator+ (const difference_type n) const noexcept
 
constexpr vector_const_iteratoroperator-= (const difference_type n) noexcept
 
constexpr vector_const_iterator operator- (const difference_type n) const noexcept
 
constexpr reference operator[] (const difference_type n) const noexcept
 
pointer base () const noexcept
 

Protected Attributes

pointer _current
 

Friends

template<typename Alloc >
constexpr friend vector_const_iterator< Alloc >::difference_type operator- (const vector_const_iterator< Alloc > &lhs, const vector_const_iterator< Alloc > &rhs) noexcept
 
template<typename Alloc >
constexpr friend bool operator== (const vector_const_iterator< Alloc > &lhs, const vector_const_iterator< Alloc > &rhs) noexcept
 
template<typename Alloc >
constexpr friend vector_const_iterator< Alloc >::difference_type operator- (const vector_const_iterator< Alloc > &lhs, const vector_iterator< Alloc > &rhs) noexcept
 
template<typename Alloc >
constexpr friend bool operator== (const vector_const_iterator< Alloc > &lhs, const vector_iterator< Alloc > &rhs) noexcept
 

Detailed Description

template<typename Allocator>
struct plg::vector_const_iterator< Allocator >

Definition at line 127 of file vector.hpp.

Member Typedef Documentation

◆ allocator_traits

template<typename Allocator >
using plg::vector_const_iterator< Allocator >::allocator_traits = std::allocator_traits<Allocator>

Definition at line 128 of file vector.hpp.

◆ difference_type

template<typename Allocator >
using plg::vector_const_iterator< Allocator >::difference_type = std::ptrdiff_t

Definition at line 132 of file vector.hpp.

◆ iterator_category

template<typename Allocator >
using plg::vector_const_iterator< Allocator >::iterator_category = std::random_access_iterator_tag

Definition at line 130 of file vector.hpp.

◆ pointer

template<typename Allocator >
using plg::vector_const_iterator< Allocator >::pointer = typename allocator_traits::const_pointer

Definition at line 133 of file vector.hpp.

◆ reference

template<typename Allocator >
using plg::vector_const_iterator< Allocator >::reference = const value_type&

Definition at line 134 of file vector.hpp.

◆ value_type

template<typename Allocator >
using plg::vector_const_iterator< Allocator >::value_type = typename allocator_traits::value_type

Definition at line 131 of file vector.hpp.

Constructor & Destructor Documentation

◆ vector_const_iterator() [1/2]

template<typename Allocator >
constexpr plg::vector_const_iterator< Allocator >::vector_const_iterator ( pointer  ptr)
inlineconstexpr

Definition at line 141 of file vector.hpp.

◆ vector_const_iterator() [2/2]

template<typename Allocator >
constexpr plg::vector_const_iterator< Allocator >::vector_const_iterator ( const vector_iterator< Allocator > &  other)
inlineconstexpr

Definition at line 143 of file vector.hpp.

Member Function Documentation

◆ base()

template<typename Allocator >
pointer plg::vector_const_iterator< Allocator >::base ( ) const
inlinenoexcept

Definition at line 210 of file vector.hpp.

◆ operator*()

template<typename Allocator >
constexpr reference plg::vector_const_iterator< Allocator >::operator* ( ) const
inlineconstexprnoexcept

Definition at line 152 of file vector.hpp.

◆ operator+()

template<typename Allocator >
constexpr vector_const_iterator plg::vector_const_iterator< Allocator >::operator+ ( const difference_type  n) const
inlineconstexprnoexcept

Definition at line 176 of file vector.hpp.

◆ operator++() [1/2]

template<typename Allocator >
constexpr vector_const_iterator & plg::vector_const_iterator< Allocator >::operator++ ( )
inlineconstexprnoexcept

Definition at line 158 of file vector.hpp.

◆ operator++() [2/2]

template<typename Allocator >
constexpr vector_const_iterator plg::vector_const_iterator< Allocator >::operator++ ( int  ) const
inlineconstexprnoexcept

Definition at line 162 of file vector.hpp.

◆ operator+=()

template<typename Allocator >
constexpr vector_const_iterator & plg::vector_const_iterator< Allocator >::operator+= ( const difference_type  n)
inlineconstexprnoexcept

Definition at line 172 of file vector.hpp.

◆ operator-()

template<typename Allocator >
constexpr vector_const_iterator plg::vector_const_iterator< Allocator >::operator- ( const difference_type  n) const
inlineconstexprnoexcept

Definition at line 184 of file vector.hpp.

◆ operator--() [1/2]

template<typename Allocator >
constexpr vector_const_iterator & plg::vector_const_iterator< Allocator >::operator-- ( )
inlineconstexprnoexcept

Definition at line 165 of file vector.hpp.

◆ operator--() [2/2]

template<typename Allocator >
constexpr vector_const_iterator plg::vector_const_iterator< Allocator >::operator-- ( int  ) const
inlineconstexprnoexcept

Definition at line 169 of file vector.hpp.

◆ operator-=()

template<typename Allocator >
constexpr vector_const_iterator & plg::vector_const_iterator< Allocator >::operator-= ( const difference_type  n)
inlineconstexprnoexcept

Definition at line 180 of file vector.hpp.

◆ operator->()

template<typename Allocator >
constexpr pointer plg::vector_const_iterator< Allocator >::operator-> ( ) const
inlineconstexprnoexcept

Definition at line 155 of file vector.hpp.

◆ operator[]()

template<typename Allocator >
constexpr reference plg::vector_const_iterator< Allocator >::operator[] ( const difference_type  n) const
inlineconstexprnoexcept

Definition at line 188 of file vector.hpp.

Member Data Documentation

◆ _current

template<typename Allocator >
pointer plg::vector_const_iterator< Allocator >::_current
protected

Definition at line 136 of file vector.hpp.


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