Skip to content

Commit 4424e3c

Browse files
committed
Move operator <=> to operator member funcs section
1 parent 1a910dd commit 4424e3c

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

stacktrace.html

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,16 @@ <h4><code>explicit operator bool() const noexcept;</code></h4>
109109
<h4><code>bool empty() const noexcept;</code></h4>
110110
<p>Allows to check that stack trace failed.</p>
111111
<h4><code>const std::vector&lt; std::stacktrace::frame, Allocator &gt; & as_vector() const noexcept;</code></h4>
112+
<h3><code>basic_stacktrace</code> operator member functions</h3>
113+
<h4>
114+
<pre>template &lt;typename Allocator1, typename Allocator2&gt;
115+
std::strong_ordering operator &lt;=&gt;(const basic_stacktrace&lt; Allocator1 &gt; & lhs,
116+
const basic_stacktrace&lt; Allocator2 &gt; & rhs) = default;
117+
</pre>
118+
</h4>
119+
<p>
120+
Auto-generated comparison operators that provide platform dependent ordering and have amortized O(1) complexity; O(size()) worst case complexity; are Async-Handler-Safe.
121+
</p>
112122
<h3><code>basic_stacktrace</code> public static functions</h3>
113123
<h4><code>template&lt;typename Char, typename Trait&gt;
114124
static basic_stacktrace
@@ -140,6 +150,11 @@ <h4><code>std::string source_line() const;</code></h4>
140150
<p>Returns code line in the source line, where the function of the frame is defined. Throws std::bad_alloc if not enough memory to construct resulting string.</p>
141151
<h4><code>constexpr bool empty() const;</code></h4>
142152
<p>Checks that frame is not references NULL address.</p>
153+
<h3><code>frame</code> operator member functions</h3>
154+
<h4>std::strong_ordering operator &lt;=&gt;(const frame & lhs, const frame & rhs) = default;</h4>
155+
<p>
156+
Comparison operators that provide platform dependent ordering and have O(1) complexity; are Async-Handler-Safe.
157+
</p>
143158
<h2>IV. Proposed Interface</h2>
144159
<h3>Header &lt;stacktrace&gt;</h3>
145160
<pre>
@@ -154,10 +169,6 @@ <h3>Header &lt;stacktrace&gt;</h3>
154169
template&lt;typename Allocator1, typename Allocator2&gt;
155170
bool operator==(const basic_stacktrace&lt; Allocator1 &gt; &,
156171
const basic_stacktrace&lt; Allocator2 &gt; &); -->
157-
// Auto-generated comparison operators that provide platform dependant ordering and have amortized O(1) complexity; O(size()) worst case complexity; are Async-Handler-Safe.
158-
template &lt;typename Allocator1, typename Allocator2&gt;
159-
std::strong_ordering operator &lt;=&gt;(const basic_stacktrace&lt; Allocator1 &gt; & lhs,
160-
const basic_stacktrace&lt; Allocator2 &gt; & rhs) = default;
161172
<!-- template&lt;typename Allocator1, typename Allocator2&gt;
162173
bool operator&gt;(const basic_stacktrace&lt; Allocator1 &gt; & lhs,
163174
const basic_stacktrace&lt; Allocator2 &gt; & rhs);
@@ -186,9 +197,6 @@ <h3> Header &lt;frame&gt;</h3>
186197
<pre>
187198
namespace std {
188199
namespace stacktrace {
189-
190-
// Comparison operators that provide platform dependant ordering and have O(1) complexity; are Async-Handler-Safe.
191-
std::strong_ordering operator &lt;=&gt;(const frame & lhs, const frame & rhs) = default;
192200
<!-- constexpr bool operator&lt;(const frame & lhs, const frame & rhs);
193201
constexpr bool operator&gt;(const frame & lhs, const frame & rhs);
194202
constexpr bool operator&lt;=(const frame & lhs, const frame & rhs);

0 commit comments

Comments
 (0)