FlatImage
A configurable Linux containerization system
Loading...
Searching...
No Matches
ns_concept::Uniform Concept Reference

Concept to check if all types are the same. More...

#include <concept.hpp>

Concept definition

template<typename T, typename... U>
concept ns_concept::Uniform = ( std::same_as<std::remove_cvref_t<T>, std::remove_cvref_t<U>> and ... )
Concept to check if all types are the same.
Definition concept.hpp:198

Detailed Description

Concept to check if all types are the same.

Template Parameters
TThe type to check
UThe types to match against

Automatically removes cv-qualifiers and references before comparison.

Example:

static_assert( Uniform<int, int>);
static_assert(!Uniform<int, long>);

Definition at line 198 of file concept.hpp.