|
JH-Toolkit v1.4.1
An engineering-oriented C++20 toolkit with duck-typed concepts, static design, async coroutines, and semantic containers — header-only, RTTI-free, and concurrency-friendly.
|
Trivial placeholder type monostate and its traits.
More...
#include <type_traits>Go to the source code of this file.
Classes | |
| struct | jh::typed::monostate |
| Trivial empty type representing "no value". More... | |
| struct | jh::typed::is_monostate< T > |
Type trait: checks whether T is monostate. More... | |
| struct | jh::typed::is_monostate< monostate > |
Namespaces | |
| namespace | jh::typed |
| Aggregated entry point for lightweight typing and semantic placeholder utilities. | |
Concepts | |
| concept | jh::typed::monostate_t |
Concept: satisfied only if T is monostate. | |
Trivial placeholder type monostate and its traits.
Provides jh::typed::monostate, a strict POD type equivalent in spirit to std::monostate, but lightweight and header-only (no dependency on <variant> or other STL headers).
monostate — trivial empty type with equality operators. is_monostate<T> — type trait for detection. monostate_t<T> — concept form for SFINAE/constraints. tuple slots). nullopt or nullable types. true. 1.3.x
2025