nkr
A C++20 library with a custom meta-programming language.
nkr::none Namespace Reference

None types are used to represent the concept of nothing. More...

Detailed Description

None types are used to represent the concept of nothing.

C++ actually comes with a couple of built in none types, one calledvoid to represent the lack of a type, which is aliased as nkr::none::type_t, and two std::nullptr_t which represents the lack of a pointer, which is aliased as nkr::none::pointer_t. nkr comes with more none types, in particular the nkr::none::value_t which represents the lack of a value.