Skip to content

Commit 52b26f5

Browse files
committed
Merge 2025-02 LWG Motion 4
P0472R3 Put std::monostate in <utility>
2 parents 06be8f8 + f753069 commit 52b26f5

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

source/utilities.tex

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

0 commit comments

Comments
 (0)