summaryrefslogtreecommitdiff
path: root/src/util/string.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/string.h')
-rw-r--r--src/util/string.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/util/string.h b/src/util/string.h
index 3f6384082..017c60fb8 100644
--- a/src/util/string.h
+++ b/src/util/string.h
@@ -26,6 +26,10 @@
namespace cvc5 {
+namespace strings {
+struct StringHashFunction;
+}
+
/** The cvc5 string class
*
* This data structure is the domain of values for the string type. It can also
@@ -33,6 +37,8 @@ namespace cvc5 {
*/
class String
{
+ friend strings::StringHashFunction;
+
public:
/**
* This is the cardinality of the alphabet that is representable by this
@@ -267,10 +273,7 @@ namespace strings {
struct StringHashFunction
{
- size_t operator()(const ::cvc5::String& s) const
- {
- return std::hash<std::string>()(s.toString());
- }
+ size_t operator()(const ::cvc5::String& s) const;
}; /* struct StringHashFunction */
} // namespace strings
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback