Skip to content

Commit

Permalink
Replace fn hash_value -> template hash
Browse files Browse the repository at this point in the history
  • Loading branch information
leha-bot committed Dec 15, 2017
1 parent e761323 commit 100674b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions stacktrace.html
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ <h3>Header &lt;stacktrace&gt;</h3>

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

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

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

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

0 comments on commit 100674b

Please sign in to comment.