Radium Engine  1.5.20
Loading...
Searching...
No Matches
Ra::Core::Utils::map_values< Mapclass > Struct Template Reference

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

#include <Core/Utils/StdMapIterators.hpp>

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

Public Types

using map_t = Mapclass
 

Public Member Functions

 map_values (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_values< Mapclass >

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

Template Parameters
MapclassSpecialized Map or OrderedMap

Usage:

for ( auto& v : Ra::Core::Utils::map_values( myMap ) )
v = std::string( "-" ) + v;

Definition at line 69 of file StdMapIterators.hpp.

Member Typedef Documentation

◆ map_t

template<class Mapclass >
using Ra::Core::Utils::map_values< Mapclass >::map_t = Mapclass

Definition at line 70 of file StdMapIterators.hpp.

Constructor & Destructor Documentation

◆ map_values()

template<class Mapclass >
Ra::Core::Utils::map_values< Mapclass >::map_values ( map_t & x)
inline

Definition at line 102 of file StdMapIterators.hpp.

Member Function Documentation

◆ begin()

template<class Mapclass >
iterator Ra::Core::Utils::map_values< Mapclass >::begin ( )
inline

Definition at line 104 of file StdMapIterators.hpp.

◆ end()

template<class Mapclass >
iterator Ra::Core::Utils::map_values< Mapclass >::end ( )
inline

Definition at line 105 of file StdMapIterators.hpp.

◆ size()

template<class Mapclass >
unsigned int Ra::Core::Utils::map_values< Mapclass >::size ( ) const
inline

Definition at line 106 of file StdMapIterators.hpp.

Member Data Documentation

◆ x_

template<class Mapclass >
map_t& Ra::Core::Utils::map_values< Mapclass >::x_

Definition at line 108 of file StdMapIterators.hpp.


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