mn::insert_iterator< TCon > Class Template Reference

#include <mn_iterator.hpp>

Public Types

using container_type = TCon
 
using iterator_category = output_iterator_tag
 
using value_type = typename container_type::value_type
 
using difference_type = typename container_type::difference_type
 
using pointer = typename container_type::pointer
 
using reference = typename container_type::reference
 
using const_reference = typename container_type::const_reference
 
using iterator = typename container_type::iterator
 

Public Member Functions

constexpr insert_iterator (container_type &ctr, iterator itr)
 
insert_iteratoroperator= (const_reference v)
 
constexpr insert_iteratoroperator* (void)
 
constexpr insert_iteratoroperator++ (void)
 
constexpr insert_iterator operator++ (int)
 

Protected Attributes

container_typem_con
 
iterator m_iter
 

Member Typedef Documentation

◆ const_reference

template<typename TCon >
using mn::insert_iterator< TCon >::const_reference = typename container_type::const_reference

◆ container_type

template<typename TCon >
using mn::insert_iterator< TCon >::container_type = TCon

◆ difference_type

template<typename TCon >
using mn::insert_iterator< TCon >::difference_type = typename container_type::difference_type

◆ iterator

template<typename TCon >
using mn::insert_iterator< TCon >::iterator = typename container_type::iterator

◆ iterator_category

template<typename TCon >
using mn::insert_iterator< TCon >::iterator_category = output_iterator_tag

◆ pointer

template<typename TCon >
using mn::insert_iterator< TCon >::pointer = typename container_type::pointer

◆ reference

template<typename TCon >
using mn::insert_iterator< TCon >::reference = typename container_type::reference

◆ value_type

template<typename TCon >
using mn::insert_iterator< TCon >::value_type = typename container_type::value_type

Constructor & Destructor Documentation

◆ insert_iterator()

template<typename TCon >
constexpr mn::insert_iterator< TCon >::insert_iterator ( container_type ctr,
iterator  itr 
)
inlineexplicitconstexpr

Member Function Documentation

◆ operator*()

template<typename TCon >
constexpr insert_iterator& mn::insert_iterator< TCon >::operator* ( void  )
inlineconstexpr

◆ operator++() [1/2]

template<typename TCon >
constexpr insert_iterator mn::insert_iterator< TCon >::operator++ ( int  )
inlineconstexpr

◆ operator++() [2/2]

template<typename TCon >
constexpr insert_iterator& mn::insert_iterator< TCon >::operator++ ( void  )
inlineconstexpr

◆ operator=()

template<typename TCon >
insert_iterator& mn::insert_iterator< TCon >::operator= ( const_reference  v)
inline

Member Data Documentation

◆ m_con

template<typename TCon >
container_type& mn::insert_iterator< TCon >::m_con
protected

◆ m_iter

template<typename TCon >
iterator mn::insert_iterator< TCon >::m_iter
protected

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