KUMI v4.0.0
Flawless Fluorite
Loading...
Searching...
No Matches
kumi::concepts::equivalent Concept Reference

Concept specifying if two types have matching named fields. More...

#include <kumi/utils/concepts.hpp>

Detailed Description

Concept specifying if two types have matching named fields.

A type T models kumi::concepts::equivalent<T,U> if it is a kumi::concepts::product_type with the same number of fields as U, and each of them has a corresponding field in U. Corresponding field means that the labels of the fields in T matches those of U.

Concept definition

template<typename T, typename U>
kumi::is_equivalent_v<std::remove_cvref_t<T>, std::remove_cvref_t<U>>
Concept specifying if two types have matching named fields.
Definition concepts.hpp:360
Concept specifying a type follows the Product Type semantic.
Definition concepts.hpp:63