CARMA C++
stlContainerUtils.h File Reference

Interface file for various utlities for use with STL containers. More...

#include <algorithm>
#include <iterator>
#include <map>
#include <set>

Go to the source code of this file.

Classes

struct  carma::util::RetrieveKey
 Struct which operators on a container key-value pair to retrieve the key. More...
 

Namespaces

module  carma
 IDL for bima Rx Control, inherits from antenna::common::RxControl.
 
 carma::util
 Utility classes.
 

Functions

template<typename K , typename V >
::std::multimap< V, K > carma::util::invertToMultimap (const ::std::map< K, V > &in)
 
template<typename K , typename V >
::std::multimap< V, K > carma::util::invertToMultimap (const ::std::multimap< K, V > &in)
 
template<typename K , typename V >
::std::set< K > carma::util::keys (const ::std::map< K, V > &in)
 Return the keys of a map as a set. More...
 
template<typename K , typename V >
::std::set< K > carma::util::keys (const ::std::multimap< K, V > &in)
 Return the unique keys of a multimap as a set. More...
 
template<typename C >
bool carma::util::sizeIsExactlyOne (const C &)
 Constant time check that a container has exactly one element. More...
 
template<typename C >
bool carma::util::sizeIsOneOrLess (const C &)
 Constant time check that a container has no more than one element. More...
 

Detailed Description

Interface file for various utlities for use with STL containers.

Definition in file stlContainerUtils.h.