Gromacs
2018.8
|
#include <gromacs/utility/stringcompare.h>
Compare object for std::string STL containers and algorithms that supports run-time decision on how to compare.
Public Member Functions | |
StringCompare (StringCompareType type=StringCompareType::Exact) | |
Creates a comparer with the given type. More... | |
bool | operator() (const std::string &a, const std::string &b) const |
The comparison operation. | |
|
inline |
Creates a comparer with the given type.
This is not explicit, which allows passing StringCompareType directly to, e.g., std::map
constructors.