Skip to content

Commit 563a74d

Browse files
committed
P0472R3 Put std::monostate in <utility>
1 parent 805aac8 commit 563a74d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

source/utilities.tex

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,17 @@
220220
explicit nontype_t() = default;
221221
};
222222
template<auto V> constexpr nontype_t<V> nontype{};
223+
224+
// \ref{variant.monostate}, class \tcode{monostate}
225+
struct monostate;
226+
227+
// \ref{variant.monostate.relops}, \tcode{monostate} relational operators
228+
constexpr bool operator==(monostate, monostate) noexcept;
229+
constexpr strong_ordering operator<=>(monostate, monostate) noexcept;
230+
231+
// \ref{variant.hash}, hash support
232+
template<class T> struct hash;
233+
template<> struct hash<monostate>;
223234
}
224235
\end{codeblock}
225236

0 commit comments

Comments
 (0)