Blender V5.0
unique_ptr_vector< T >::Iterator Struct Reference

#include <unique_ptr_vector.h>

Public Types

using iterator_category = std::random_access_iterator_tag
using value_type = typename vector<unique_ptr<T>>::value_type
using difference_type = typename vector<unique_ptr<T>>::difference_type
using pointer = typename vector<unique_ptr<T>>::const_pointer
using reference = typename vector<unique_ptr<T>>::reference

Public Member Functions

Toperator* () const
bool operator== (const Iterator &other) const
bool operator!= (const Iterator &other) const
void operator++ ()
difference_type operator- (const Iterator &other) const noexcept
Iterator operator+ (const difference_type offset) const noexcept
Iteratoroperator+= (const difference_type offset) noexcept

Public Attributes

vector< unique_ptr< T > >::const_iterator it

Detailed Description

template<typename T>
struct unique_ptr_vector< T >::Iterator

Definition at line 158 of file unique_ptr_vector.h.

Member Typedef Documentation

◆ difference_type

template<typename T>
using unique_ptr_vector< T >::Iterator::difference_type = typename vector<unique_ptr<T>>::difference_type

Definition at line 162 of file unique_ptr_vector.h.

◆ iterator_category

template<typename T>
using unique_ptr_vector< T >::Iterator::iterator_category = std::random_access_iterator_tag

Definition at line 159 of file unique_ptr_vector.h.

◆ pointer

template<typename T>
using unique_ptr_vector< T >::Iterator::pointer = typename vector<unique_ptr<T>>::const_pointer

Definition at line 163 of file unique_ptr_vector.h.

◆ reference

template<typename T>
using unique_ptr_vector< T >::Iterator::reference = typename vector<unique_ptr<T>>::reference

Definition at line 164 of file unique_ptr_vector.h.

◆ value_type

template<typename T>
using unique_ptr_vector< T >::Iterator::value_type = typename vector<unique_ptr<T>>::value_type

Definition at line 161 of file unique_ptr_vector.h.

Member Function Documentation

◆ operator!=()

template<typename T>
bool unique_ptr_vector< T >::Iterator::operator!= ( const Iterator & other) const
inline

Definition at line 176 of file unique_ptr_vector.h.

References it.

◆ operator*()

template<typename T>
T * unique_ptr_vector< T >::Iterator::operator* ( ) const
inline

Definition at line 168 of file unique_ptr_vector.h.

References it, and T.

◆ operator+()

template<typename T>
Iterator unique_ptr_vector< T >::Iterator::operator+ ( const difference_type offset) const
inlinenoexcept

Definition at line 188 of file unique_ptr_vector.h.

◆ operator++()

template<typename T>
void unique_ptr_vector< T >::Iterator::operator++ ( )
inline

Definition at line 180 of file unique_ptr_vector.h.

References it.

◆ operator+=()

template<typename T>
Iterator & unique_ptr_vector< T >::Iterator::operator+= ( const difference_type offset)
inlinenoexcept

Definition at line 194 of file unique_ptr_vector.h.

References it.

◆ operator-()

template<typename T>
difference_type unique_ptr_vector< T >::Iterator::operator- ( const Iterator & other) const
inlinenoexcept

Definition at line 184 of file unique_ptr_vector.h.

References it.

◆ operator==()

template<typename T>
bool unique_ptr_vector< T >::Iterator::operator== ( const Iterator & other) const
inline

Definition at line 172 of file unique_ptr_vector.h.

References it.

Member Data Documentation

◆ it

template<typename T>
vector<unique_ptr<T>>::const_iterator unique_ptr_vector< T >::Iterator::it

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