#include <functor.h>
Public Member Functions | |
| template<typename PairType> void | operator() (PairType &p) const |
| Deallocates p.first and p.second. | |
Admitedly, it's a waste of time for value types, but the point is a single functor which can work for all pair types.
sample:
std::for_each( map.begin(), map.end(), pair_entry_deallocator() );
Definition at line 274 of file functor.h.
|
||||||||||
|
Deallocates p.first and p.second. PairType must not be a pointer type. Definition at line 281 of file functor.h. References operator()(). Referenced by operator()(). |
1.3.7