summaryrefslogtreecommitdiff
path: root/Source/cmListFileCache.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-05-18 21:51:42 +0200
committerStephen Kelly <steveire@gmail.com>2015-05-18 23:55:44 +0200
commit9645cba3bfc4bd583259130fd7e63da0c8bbecca (patch)
tree04f249064af59ccc8bda1872eb3f928599372687 /Source/cmListFileCache.cxx
parent52a8d19c9b67e5c902155f52fc7d145e091a5e7d (diff)
downloadcmake-9645cba3bfc4bd583259130fd7e63da0c8bbecca.tar.gz
cmListFileContext: Implement EqualityComparable.
Diffstat (limited to 'Source/cmListFileCache.cxx')
-rw-r--r--Source/cmListFileCache.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/cmListFileCache.cxx b/Source/cmListFileCache.cxx
index 650e2e5b12..3e3d70869b 100644
--- a/Source/cmListFileCache.cxx
+++ b/Source/cmListFileCache.cxx
@@ -440,3 +440,13 @@ bool operator<(const cmListFileContext& lhs, const cmListFileContext& rhs)
}
return lhs.FilePath < rhs.FilePath;
}
+
+bool operator==(const cmListFileContext& lhs, const cmListFileContext& rhs)
+{
+ return lhs.Line == rhs.Line && lhs.FilePath == rhs.FilePath;
+}
+
+bool operator!=(const cmListFileContext& lhs, const cmListFileContext& rhs)
+{
+ return !(lhs == rhs);
+}