Replace ResidueTypeMap with std::unordered_map
[alexxy/gromacs.git] / src / gromacs / utility / stringutil.h
index 4249b004d728d8b4c7b9f04085f72b737e66e571..e3a2680583e7905f433436cdcd880da323786aa4 100644 (file)
@@ -431,6 +431,16 @@ std::string replaceAllWords(const std::string& input, const std::string& from, c
  */
 bool equalCaseInsensitive(const std::string& source, const std::string& target);
 
+//! Function object for comparisons with \c equalCaseInsensitive
+class EqualCaseInsensitive
+{
+public:
+    bool operator()(const std::string& lhs, const std::string& rhs) const
+    {
+        return gmx::equalCaseInsensitive(lhs, rhs);
+    }
+};
+
 /*! \brief
  * Checks if at most \p maxLengthOfComparison characters of two strings match case insensitive.
  *