sparrow 0.3.0
Loading...
Searching...
No Matches
sparrow::repeat_view_iterator< T > Class Template Reference

#include <repeat_container.hpp>

Inheritance diagram for sparrow::repeat_view_iterator< T >:
[legend]
Collaboration diagram for sparrow::repeat_view_iterator< T >:
[legend]

Public Types

using self_type = repeat_view_iterator<T>
 
using base_type = sparrow::iterator_base<self_type, const T, std::random_access_iterator_tag>
 
using iterator_category = std::random_access_iterator_tag
 
using value_type = T
 
using reference = typename base_type::reference
 
using difference_type = typename base_type::difference_type
 

Public Member Functions

constexpr repeat_view_iterator ()=default
 
constexpr repeat_view_iterator (const T &value, size_t index)
 Constructs a repeat_view_iterator.
 

Friends

class iterator_access
 

Detailed Description

template<typename T>
class sparrow::repeat_view_iterator< T >

Definition at line 25 of file repeat_container.hpp.

Member Typedef Documentation

◆ base_type

template<typename T>
using sparrow::repeat_view_iterator< T >::base_type = sparrow::iterator_base<self_type, const T, std::random_access_iterator_tag>

Definition at line 31 of file repeat_container.hpp.

◆ difference_type

template<typename T>
using sparrow::repeat_view_iterator< T >::difference_type = typename base_type::difference_type

Definition at line 36 of file repeat_container.hpp.

◆ iterator_category

template<typename T>
using sparrow::repeat_view_iterator< T >::iterator_category = std::random_access_iterator_tag

Definition at line 33 of file repeat_container.hpp.

◆ reference

template<typename T>
using sparrow::repeat_view_iterator< T >::reference = typename base_type::reference

Definition at line 35 of file repeat_container.hpp.

◆ self_type

template<typename T>
using sparrow::repeat_view_iterator< T >::self_type = repeat_view_iterator<T>

Definition at line 30 of file repeat_container.hpp.

◆ value_type

template<typename T>
using sparrow::repeat_view_iterator< T >::value_type = T

Definition at line 34 of file repeat_container.hpp.

Constructor & Destructor Documentation

◆ repeat_view_iterator() [1/2]

template<typename T>
sparrow::repeat_view_iterator< T >::repeat_view_iterator ( )
constexprdefault
Here is the caller graph for this function:

◆ repeat_view_iterator() [2/2]

template<typename T>
sparrow::repeat_view_iterator< T >::repeat_view_iterator ( const T & value,
size_t index )
constexpr

Constructs a repeat_view_iterator.

Parameters
valueThe value to repeat
indexThe index of the iterator, representing the current position in the repeated sequence

Definition at line 95 of file repeat_container.hpp.

Here is the call graph for this function:

Friends And Related Symbol Documentation

◆ iterator_access

template<typename T>
friend class iterator_access
friend

Definition at line 60 of file repeat_container.hpp.


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