We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8697ca5 commit f2f0f94Copy full SHA for f2f0f94
source/mir/small_string.d
@@ -196,6 +196,11 @@ extern(D) @safe pure @nogc:
196
/// ditto
197
alias opBinary(string op : "~") = concat;
198
199
+ ///
200
+ extern (D) size_t toHash() const nothrow @safe
201
+ {
202
+ return hashOf(this[]);
203
+ }
204
205
scope nothrow:
206
@@ -289,12 +294,6 @@ scope const:
289
294
{
290
295
return __cmp(opIndex, str);
291
296
}
292
-
293
- ///
- extern (D) auto toHash() const nothrow @safe
- {
- return hashOf(this[]);
297
- }
298
299
300
///
0 commit comments