Gromacs  2018.8
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions
gmx::StringCompare Class Reference

#include <gromacs/utility/stringcompare.h>

Description

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.
 

Constructor & Destructor Documentation

gmx::StringCompare::StringCompare ( StringCompareType  type = StringCompareType::Exact)
inline

Creates a comparer with the given type.

This is not explicit, which allows passing StringCompareType directly to, e.g., std::map constructors.


The documentation for this class was generated from the following file: