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::concepts::unit_type if it is a kumi::concepts::product_type with a size of 0 or if std::is_null_pointer_v returns true.

See also
Unit Type : \( (1 / \top) \)

Concept definition

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