StormByte C++ Library 0.0.9999
StormByte is a comprehensive, cross-platform C++ library aimed at easing system programming, configuration management, logging, and database handling tasks. This library provides a unified API that abstracts away the complexities and inconsistencies of different platforms (Windows, Linux).
Loading...
Searching...
No Matches
StormByte::Type::SameAs Concept Reference

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

#include <type_traits.hxx>

Concept definition

template<typename T, typename U>
concept StormByte::Type::SameAs = std::is_same_v<std::remove_cvref_t<T>, std::remove_cvref_t<U>>
Concept to check if two types are the same.
Definition type_traits.hxx:387

Detailed Description

Concept to check if two types are the same.

Template Parameters
TFirst type.
USecond type.

Types satisfy SameAs if they are identical after removing cv-qualifiers and references.

template<typename T, typename U>
void ensure_same_type(T a, U b) { ... }