summaryrefslogtreecommitdiff
path: root/include/xmlreader/span.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/xmlreader/span.hxx')
-rw-r--r--include/xmlreader/span.hxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/xmlreader/span.hxx b/include/xmlreader/span.hxx
index 038241ef1133..f56059b96274 100644
--- a/include/xmlreader/span.hxx
+++ b/include/xmlreader/span.hxx
@@ -77,6 +77,19 @@ struct SAL_WARN_UNUSED OOO_DLLPUBLIC_XMLREADER Span {
}
rtl::OUString convertFromUtf8() const;
+
+ std::size_t hashCode() const;
+};
+
+}
+
+namespace std {
+
+template<>
+struct hash<::xmlreader::Span>
+{
+ std::size_t operator()(::xmlreader::Span const & s) const
+ { return s.hashCode(); }
};
}