|
template<typename K , typename T > |
void | utility::keys::swap (SmallKeyMap< K, T > &a, SmallKeyMap< K, T > &b) |
| swap( SmallKeyMap, SmallKeyMap ) More...
|
|
template<typename K , typename T > |
bool | utility::keys::operator== (SmallKeyMap< K, T > const &a, SmallKeyMap< K, T > const &b) |
| SmallKeyMap == SmallKeyMap. More...
|
|
template<typename K , typename T > |
bool | utility::keys::operator!= (SmallKeyMap< K, T > const &a, SmallKeyMap< K, T > const &b) |
| SmallKeyMap != SmallKeyMap. More...
|
|
template<typename K , typename T > |
void | std::swap (utility::keys::SmallKeyMap< K, T > &a, utility::keys::SmallKeyMap< K, T > &b) |
| swap( SmallKeyMap, SmallKeyMap ) More...
|
|
Keyed-access map with key subset map.
- Author
- Stuart G. Mentzer (Stuar.nosp@m.t_Me.nosp@m.ntzer.nosp@m.@obj.nosp@m.exx.c.nosp@m.om)
- Note
- Key can be any type that is convertible to the index map's index type
- The Key type should not be the same as Index or you'll get an operator[] ambiguity
- If a utility Key subtype is used it must declare the SmallKeyMap as a friend
- Keys are added to map by assign(), operator(), and add()
- Keys can be added to map out of order
- Index map is specific to the SmallKeyMap so this container is intended for use where the index range of the keys is either small or dense