wavelength 1.0.0
Loading...
Searching...
No Matches
strless.h
Go to the documentation of this file.
1#pragma once
2
3#include <cstring>
4
10class StrLess {
11public:
19 bool operator()(const char *pszFirst, const char *pszSecond) const {
20 return std::strcmp(pszFirst, pszSecond) < 0;
21 }
22};
Ordering of C strings by their text, for maps keyed by name.
Definition strless.h:10
bool operator()(const char *pszFirst, const char *pszSecond) const
Report whether one string sorts before another.
Definition strless.h:19