Skip to content

Commit 67e5510

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

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

source/utilities.tex

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

0 commit comments

Comments
 (0)