StormByte 2.0.0
C++26 foundation of the StormByte suite
 
Loading...
Searching...
No Matches
StormByte::Type::SameAs Concept Reference

Same type after stripping cv and references from both sides. More...

#include <StormByte/type_traits/relations.hxx>

Concept definition

template<typename T, typename U>
std::is_same_v<std::remove_cvref_t<T>, std::remove_cvref_t<U>>
Same type after stripping cv and references from both sides.
Definition relations.hxx:94

Detailed Description

Same type after stripping cv and references from both sides.

Template Parameters
TFirst type.
USecond type.

Not std::same_as: that does not strip. int and const int& match here.

template<typename T, typename U>
void ensure_same_type(T a, U b);