18 template <
typename Key,
typename Value>
28 bool Exists(Key key)
const;
30 bool Remove(Key key, Value& value);
32 bool Get(Key key, Value& value)
const;
41 template <
typename Key,
typename Value>
46 template <
typename Key,
typename Value>
51 template <
typename Key,
typename Value>
57 hasElements = (
mMap.size() > 0);
63 template <
typename Key,
typename Value>
69 exists = (
mMap.find(key) !=
mMap.end());
75 template <
typename Key,
typename Value>
85 template <
typename Key,
typename Value>
91 auto iter =
mMap.find(key);
92 if (iter !=
mMap.end())
107 template <
typename Key,
typename Value>
117 template <
typename Key,
typename Value>
123 auto iter =
mMap.find(key);
124 if (iter !=
mMap.end())
126 value = iter->second;
138 template <
typename Key,
typename Value>
145 values.resize(
mMap.size());
146 auto viter = values.begin();
147 for (
auto const&
m :
mMap)
void Insert(Key key, Value value)
std::map< Key, Value > mMap
bool Get(Key key, Value &value) const
GLsizei const GLfloat * value
GLenum GLsizei GLsizei GLint * values
bool Remove(Key key, Value &value)
bool Exists(Key key) const
void GatherAll(std::vector< Value > &values) const