![]() |
Home | Libraries | People | FAQ | More |
Unconstrained sets allow the user to disable one of the views of a bimap. Doing so makes the bimap operations execute faster and reduces memory consumption. This completes the bidirectional mapping framework by including unidirectional mappings as a particular case.
For example, the following code creates a type that is similar to a regular
std::map.
typedef bimap< int, unconstrained_set_of< string > > bm_type; bm_type b; b.left[1] = "one"; b.left[2] = "two";
Unconstrained sets are useful for the following reasons:
typedef.
| Copyright © 2006 Matias Capeletto |