Skip to content

Commit f2f0f94

Browse files
committed
move toHash
1 parent 8697ca5 commit f2f0f94

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

source/mir/small_string.d

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,11 @@ extern(D) @safe pure @nogc:
196196
/// ditto
197197
alias opBinary(string op : "~") = concat;
198198

199+
///
200+
extern (D) size_t toHash() const nothrow @safe
201+
{
202+
return hashOf(this[]);
203+
}
199204

200205
scope nothrow:
201206

@@ -289,12 +294,6 @@ scope const:
289294
{
290295
return __cmp(opIndex, str);
291296
}
292-
293-
///
294-
extern (D) auto toHash() const nothrow @safe
295-
{
296-
return hashOf(this[]);
297-
}
298297
}
299298

300299
///

0 commit comments

Comments
 (0)