3
template <class T, class U>
4
typename T::mapped_type* find_ptr(T& c, U v)
6
typename T::iterator i = c.find(v);
7
return i == c.end() ? NULL : &i->second;
10
template <class T, class U>
11
const typename T::mapped_type* find_ptr(const T& c, U v)
13
typename T::const_iterator i = c.find(v);
14
return i == c.end() ? NULL : &i->second;