LogCabin
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Functions
LogCabin::Core::STLUtil Namespace Reference

Functions

template<typename Container >
Container sorted (Container container)
 Sort an R-value in place.
template<typename Map >
std::vector< typename
Map::key_type > 
getKeys (const Map &map)
 Return a copy of the keys of a map.
template<typename Map >
std::vector< typename
Map::mapped_type > 
getValues (const Map &map)
 Return a copy of the values of a map.
template<typename Map >
std::vector< std::pair
< typename Map::key_type,
typename Map::mapped_type > > 
getItems (const Map &map)
 Return a copy of the key-value pairs of a map.

Function Documentation

template<typename Container >
Container LogCabin::Core::STLUtil::sorted ( Container  container)

Sort an R-value in place.

Parameters:
containerAn R-value to sort.
Returns:
The sorted input.

Definition at line 35 of file STLUtil.h.

template<typename Map >
std::vector<typename Map::key_type> LogCabin::Core::STLUtil::getKeys ( const Map &  map)

Return a copy of the keys of a map.

Definition at line 46 of file STLUtil.h.

template<typename Map >
std::vector<typename Map::mapped_type> LogCabin::Core::STLUtil::getValues ( const Map &  map)

Return a copy of the values of a map.

Definition at line 59 of file STLUtil.h.

template<typename Map >
std::vector<std::pair<typename Map::key_type, typename Map::mapped_type> > LogCabin::Core::STLUtil::getItems ( const Map &  map)

Return a copy of the key-value pairs of a map.

Definition at line 73 of file STLUtil.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines