Skip to content

Commit 100674b

Browse files
committed
Replace fn hash_value -> template hash
1 parent e761323 commit 100674b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

stacktrace.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ <h3>Header &lt;stacktrace&gt;</h3>
160160

161161
typedef basic_stacktrace stacktrace; // This is the typedef to use unless you'd like to provide a specific allocator to std::stacktrace::basic_stacktrace.
162162
// Fast hashing support, O(st.size()) complexity; Async-Handler-Safe.
163-
template&lt;typename Allocator&gt;
164-
std::size_t hash_value(const basic_stacktrace&lt; Allocator &gt; & st);
163+
template&lt;&gt;
164+
struct hash&lt; basic_stacktrace &gt;;
165165

166166
// Outputs stacktrace in a human readable format to output stream; unsafe to use in async handlers.
167167
template&lt;typename CharT, typename TraitsT, typename Allocator&gt;
@@ -170,7 +170,8 @@ <h3>Header &lt;stacktrace&gt;</h3>
170170
const basic_stacktrace&lt; Allocator &gt; & bt);
171171

172172
// Fast hashing support, O(1) complexity; Async-Handler-Safe.
173-
std::size_t hash_value(const frame & f);
173+
template&lt;&gt;
174+
struct hash&lt; frame &gt;;
174175

175176
// Outputs stacktrace::frame in a human readable format to string; unsafe to use in async handlers.
176177
std::string to_string(const frame & f);

0 commit comments

Comments
 (0)