libzypp 17.37.17
|
Traits for std::map key and value iterators. More...
#include <zypp-core/base/Iterator.h>
Public Types | |
using | MapType = TMap |
The map type. | |
using | KeyType = typename TMap::key_type |
The maps key type. | |
using | Key_const_iterator = transform_iterator<GetPairFirst<typename MapType::value_type>, typename MapType::const_iterator> |
The key iterator type. | |
using | ValueType = typename TMap::mapped_type |
The maps value (mapped) type. | |
using | Value_const_iterator = transform_iterator<GetPairSecond<typename MapType::value_type>, typename MapType::const_iterator> |
The value iterator type. |
Traits for std::map key and value iterators.
GetPairFirst and GetPairSecond help building a transform_iterator that iterates over keys or values of a std::map. Class MapKVIteratorTraits provides some typedefs, you usg. do not want to write explicitly.
Or short:
Definition at line 210 of file Iterator.h.
using zypp::MapKVIteratorTraits< TMap >::MapType = TMap |
The map type.
Definition at line 213 of file Iterator.h.
using zypp::MapKVIteratorTraits< TMap >::KeyType = typename TMap::key_type |
The maps key type.
Definition at line 215 of file Iterator.h.
using zypp::MapKVIteratorTraits< TMap >::Key_const_iterator = transform_iterator<GetPairFirst<typename MapType::value_type>, typename MapType::const_iterator> |
The key iterator type.
Definition at line 217 of file Iterator.h.
using zypp::MapKVIteratorTraits< TMap >::ValueType = typename TMap::mapped_type |
The maps value (mapped) type.
Definition at line 219 of file Iterator.h.
using zypp::MapKVIteratorTraits< TMap >::Value_const_iterator = transform_iterator<GetPairSecond<typename MapType::value_type>, typename MapType::const_iterator> |
The value iterator type.
Definition at line 221 of file Iterator.h.