Cortex
10.0.0-a4
|
#include <MStringLess.h>
Inherits binary_function< MString, MString, bool >.
Public Member Functions | |
bool | operator() (const MString &a, const MString &b) const |
A specialisation of less<> for MString, allowing it to be easily used as the key in std::map (and a bunch of other places too no doubt). Doing things in the std namespace does seem a little iffy but we're only specialising for a type which has nothing to do with the std, so I don't see how it can be bad.