kumi v3.1.0
Exquisite Epidote
Loading...
Searching...
No Matches
kumi::concepts::unit_type Concept Reference

Concept specifying a type represent a Unit Type. More...

#include <kumi/utils/concepts.hpp>

Detailed Description

Concept specifying a type represent a Unit Type.

A type T models kumi::unit_type if it models std::is_empty or is nullptr_t.

Concept definition

template<typename T>
concept unit_type = (product_type<T> && (size_v<T> == 0)) || std::is_same_v<std::remove_cvref_t<T>, std::nullptr_t>
Concept specifying a type follows the Product Type semantic.
Definition concepts.hpp:78
Concept specifying a type represent a Unit Type.
Definition concepts.hpp:106