Radium Engine  1.5.0
Ra::Core::Utils::map_keys< Mapclass > Struct Template Reference

Generate a range to iterate over the keys of a map. More...

#include <Core/Utils/StdMapIterators.hpp>

+ Collaboration diagram for Ra::Core::Utils::map_keys< Mapclass >:

Public Types

using map_t = Mapclass
 

Public Member Functions

 map_keys (map_t &x)
 
iterator begin ()
 
iterator end ()
 
unsigned int size () const
 

Public Attributes

map_t & x_
 

Detailed Description

template<class Mapclass>
struct Ra::Core::Utils::map_keys< Mapclass >

Generate a range to iterate over the keys of a map.

Template Parameters
MapclassSpecialized Map or OrderedMap

Usage:

for ( const auto& k : Ra::Core::Utils::map_keys( myMap ) )
REQUIRE( k == std::stoi( myMap[k] ) );
Generate a range to iterate over the keys of a map.

Definition at line 22 of file StdMapIterators.hpp.


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