Sleipnir C++ API
Loading...
Searching...
No Matches
sleipnir::small_vector_iterator< Pointer, DifferenceType > Class Template Reference

#include <sleipnir/util/small_vector.hpp>

Public Types

using difference_type = DifferenceType
 
using value_type = typename std::iterator_traits< Pointer >::value_type
 
using pointer = typename std::iterator_traits< Pointer >::pointer
 
using reference = typename std::iterator_traits< Pointer >::reference
 
using iterator_category = typename std::iterator_traits< Pointer >::iterator_category
 
using iterator_concept = std::contiguous_iterator_tag
 

Public Member Functions

 small_vector_iterator (const small_vector_iterator &)=default
 
 small_vector_iterator (small_vector_iterator &&) noexcept=default
 
small_vector_iteratoroperator= (const small_vector_iterator &)=default
 
small_vector_iteratoroperator= (small_vector_iterator &&) noexcept=default
 
 ~small_vector_iterator ()=default
 
constexpr small_vector_iterator () noexcept
 
constexpr small_vector_iterator (const Pointer &p) noexcept
 
template<typename U , typename D >
requires std::is_convertible_v<U, Pointer>
constexpr small_vector_iterator (const small_vector_iterator< U, D > &other) noexcept
 
constexpr small_vector_iteratoroperator++ () noexcept
 
constexpr small_vector_iterator operator++ (int) noexcept
 
constexpr small_vector_iteratoroperator-- () noexcept
 
constexpr small_vector_iterator operator-- (int) noexcept
 
constexpr small_vector_iteratoroperator+= (difference_type n) noexcept
 
constexpr small_vector_iterator operator+ (difference_type n) const noexcept
 
constexpr small_vector_iteratoroperator-= (difference_type n) noexcept
 
constexpr small_vector_iterator operator- (difference_type n) const noexcept
 
constexpr reference operator* () const noexcept
 
constexpr pointer operator-> () const noexcept
 
constexpr reference operator[] (difference_type n) const noexcept
 
constexpr const Pointerbase () const noexcept
 

Member Typedef Documentation

◆ difference_type

◆ iterator_category

using sleipnir::small_vector_iterator< Pointer, DifferenceType >::iterator_category = typename std::iterator_traits<Pointer>::iterator_category

◆ iterator_concept

using sleipnir::small_vector_iterator< Pointer, DifferenceType >::iterator_concept = std::contiguous_iterator_tag

◆ pointer

◆ reference

using sleipnir::small_vector_iterator< Pointer, DifferenceType >::reference = typename std::iterator_traits<Pointer>::reference

◆ value_type

using sleipnir::small_vector_iterator< Pointer, DifferenceType >::value_type = typename std::iterator_traits<Pointer>::value_type

Constructor & Destructor Documentation

◆ small_vector_iterator() [1/5]

◆ small_vector_iterator() [2/5]

◆ ~small_vector_iterator()

◆ small_vector_iterator() [3/5]

constexpr sleipnir::small_vector_iterator< Pointer, DifferenceType >::small_vector_iterator ( )
inlineconstexprnoexcept

◆ small_vector_iterator() [4/5]

constexpr sleipnir::small_vector_iterator< Pointer, DifferenceType >::small_vector_iterator ( const Pointer p)
inlineexplicitconstexprnoexcept

◆ small_vector_iterator() [5/5]

template<typename U , typename D >
requires std::is_convertible_v<U, Pointer>
constexpr sleipnir::small_vector_iterator< Pointer, DifferenceType >::small_vector_iterator ( const small_vector_iterator< U, D > &  other)
inlineconstexprnoexcept

Member Function Documentation

◆ base()

◆ operator*()

◆ operator+()

◆ operator++() [1/2]

◆ operator++() [2/2]

◆ operator+=()

◆ operator-()

◆ operator--() [1/2]

◆ operator--() [2/2]

◆ operator-=()

◆ operator->()

◆ operator=() [1/2]

◆ operator=() [2/2]

◆ operator[]()


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