Skip to content

Commit 263aa0a

Browse files
committed
Replace old comparison operators with the <=>
1 parent 92e0495 commit 263aa0a

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

stacktrace.html

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -153,16 +153,18 @@ <h3>Header &lt;stacktrace&gt;</h3>
153153
namespace stacktrace {
154154
template&lt;typename Allocator&gt; class basic_stacktrace;
155155

156-
typedef basic_stacktrace stacktrace; // This is the typedef to use unless you'd like to provide a specific allocator to boost::stacktrace::basic_stacktrace.
157-
template&lt;typename Allocator1, typename Allocator2&gt;
156+
typedef basic_stacktrace stacktrace; // This is the typedef to use unless you'd like to provide a specific allocator to boost::stacktrace::basic_stacktrace.
157+
<!-- template&lt;typename Allocator1, typename Allocator2&gt;
158158
bool operator&lt;(const basic_stacktrace&lt; Allocator1 &gt; &,
159159
const basic_stacktrace&lt; Allocator2 &gt; &);
160160
template&lt;typename Allocator1, typename Allocator2&gt;
161161
bool operator==(const basic_stacktrace&lt; Allocator1 &gt; &,
162-
const basic_stacktrace&lt; Allocator2 &gt; &);
163-
164-
// Comparison operators that provide platform dependant ordering and have amortized O(1) complexity; O(size()) worst case complexity; are Async-Handler-Safe.
165-
template&lt;typename Allocator1, typename Allocator2&gt;
162+
const basic_stacktrace&lt; Allocator2 &gt; &); -->
163+
// Auto-generated comparison operators that provide platform dependant ordering and have amortized O(1) complexity; O(size()) worst case complexity; are Async-Handler-Safe.
164+
template &lt;typename Allocator1, typename Allocator2&gt;
165+
std::strong_ordering operator &lt;=&gt;(const basic_stacktrace&lt; Allocator1 &gt; & lhs,
166+
const basic_stacktrace&lt; Allocator2 &gt; & rhs) = default;
167+
<!-- template&lt;typename Allocator1, typename Allocator2&gt;
166168
bool operator&gt;(const basic_stacktrace&lt; Allocator1 &gt; & lhs,
167169
const basic_stacktrace&lt; Allocator2 &gt; & rhs);
168170
template&lt;typename Allocator1, typename Allocator2&gt;
@@ -173,8 +175,7 @@ <h3>Header &lt;stacktrace&gt;</h3>
173175
const basic_stacktrace&lt; Allocator2 &gt; & rhs);
174176
template&lt;typename Allocator1, typename Allocator2&gt;
175177
bool operator!=(const basic_stacktrace&lt; Allocator1 &gt; & lhs,
176-
const basic_stacktrace&lt; Allocator2 &gt; & rhs);
177-
178+
const basic_stacktrace&lt; Allocator2 &gt; & rhs); -->
178179
// Fast hashing support, O(st.size()) complexity; Async-Handler-Safe.
179180
template&lt;typename Allocator&gt;
180181
std::size_t hash_value(const basic_stacktrace&lt; Allocator &gt; & st);
@@ -193,13 +194,14 @@ <h3> Header &lt;frame&gt;</h3>
193194
namespace stacktrace {
194195

195196
// Comparison operators that provide platform dependant ordering and have O(1) complexity; are Async-Handler-Safe.
196-
constexpr bool operator&lt;(const frame & lhs, const frame & rhs);
197+
std::strong_ordering operator &lt;=&gt;(const frame & lhs, const frame & rhs) = default;
198+
<!-- constexpr bool operator&lt;(const frame & lhs, const frame & rhs);
197199
constexpr bool operator&gt;(const frame & lhs, const frame & rhs);
198200
constexpr bool operator&lt;=(const frame & lhs, const frame & rhs);
199201
constexpr bool operator&gt;=(const frame & lhs, const frame & rhs);
200202
constexpr bool operator==(const frame & lhs, const frame & rhs);
201203
constexpr bool operator!=(const frame & lhs, const frame & rhs);
202-
204+
-->
203205
// Fast hashing support, O(1) complexity; Async-Handler-Safe.
204206
std::size_t hash_value(const frame & f);
205207

0 commit comments

Comments
 (0)