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::forward_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::iterator current)
 
KVPair operator* () const
 
KVPairIteratoroperator++ ()
 

Friends

bool operator== (const KVPairIterator &lhs, const KVPairIterator &rhs)
 
bool operator!= (const KVPairIterator &lhs, const KVPairIterator &rhs)
 

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::forward_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::iterator  current)
inline

Member Function Documentation

◆ operator*()

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

◆ operator++()

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

Friends And Related Function Documentation

◆ operator!=

template<typename KVPair , typename Container >
bool operator!= ( const KVPairIterator< KVPair, Container > &  lhs,
const KVPairIterator< KVPair, Container > &  rhs 
)
friend

◆ operator==

template<typename KVPair , typename Container >
bool operator== ( const KVPairIterator< KVPair, Container > &  lhs,
const KVPairIterator< KVPair, Container > &  rhs 
)
friend