Asposecpplib
System::Collections::Generic::KVPairIterator< KVPair, Container > Class Template Reference

Adapting iterator, wraps std::pair into KVPair expected from Dictionary. More...

Public Types

using iterator_category = std::bidirectional_iterator_tag
 
using value_type = KVPair
 
using difference_type = std::ptrdiff_t
 
using pointer = value_type *
 
using reference = value_type &
 

Public Member Functions

 KVPairIterator (typename Container::const_iterator current)
 
KVPair operator* () const
 
KVPairIteratoroperator++ ()
 
KVPairIterator operator++ (int)
 
KVPairIteratoroperator-- ()
 
KVPairIterator operator-- (int)
 

Detailed Description

template<typename KVPair, typename Container>
class System::Collections::Generic::KVPairIterator< KVPair, Container >

Adapting iterator, wraps std::pair into KVPair expected from Dictionary.

Template Parameters
KVPairRequired return type
Containerwrapped container type

Member Typedef Documentation

◆ difference_type

template<typename KVPair , typename Container >
using System::Collections::Generic::KVPairIterator< KVPair, Container >::difference_type = std::ptrdiff_t

◆ iterator_category

template<typename KVPair , typename Container >
using System::Collections::Generic::KVPairIterator< KVPair, Container >::iterator_category = std::bidirectional_iterator_tag

◆ pointer

template<typename KVPair , typename Container >
using System::Collections::Generic::KVPairIterator< KVPair, Container >::pointer = value_type *

◆ reference

template<typename KVPair , typename Container >
using System::Collections::Generic::KVPairIterator< KVPair, Container >::reference = value_type &

◆ value_type

template<typename KVPair , typename Container >
using System::Collections::Generic::KVPairIterator< KVPair, Container >::value_type = KVPair

Constructor & Destructor Documentation

◆ KVPairIterator()

template<typename KVPair , typename Container >
System::Collections::Generic::KVPairIterator< KVPair, Container >::KVPairIterator ( typename Container::const_iterator  current)
inline

Member Function Documentation

◆ operator*()

template<typename KVPair , typename Container >
KVPair System::Collections::Generic::KVPairIterator< KVPair, Container >::operator* ( ) const
inline

◆ operator++() [1/2]

template<typename KVPair , typename Container >
KVPairIterator& System::Collections::Generic::KVPairIterator< KVPair, Container >::operator++ ( )
inline

◆ operator++() [2/2]

template<typename KVPair , typename Container >
KVPairIterator System::Collections::Generic::KVPairIterator< KVPair, Container >::operator++ ( int  )
inline

◆ operator--() [1/2]

template<typename KVPair , typename Container >
KVPairIterator& System::Collections::Generic::KVPairIterator< KVPair, Container >::operator-- ( )
inline

◆ operator--() [2/2]

template<typename KVPair , typename Container >
KVPairIterator System::Collections::Generic::KVPairIterator< KVPair, Container >::operator-- ( int  )
inline