Return to Snippet

Revision: 1112
at September 11, 2006 16:28 by brentroady


Initial Code
class LessThan 
	: public std::binary_function<char const *, char const *, bool>
{
public:
    bool operator () (char const * str1, 
                      char const * str2) const
    {
        return strcmp (str1, str2) < 0;
    }
};

std::map<char*, char*, LessThan> ipmac;

Initial URL

                                

Initial Description

                                

Initial Title
Comparison function for std::map

Initial Tags

                                

Initial Language
C++