std::same_as
| Defined in header <concepts>
|
||
| template < class T, class U > concept same_as = /* see below */; |
(since C++20) | |
The concept same_as<T, U> is satisfied if and only if T and U denote the same type.
std::same_as<T, U> subsumes std::same_as<U, T> and vice versa.
[edit] Possible implementation
namespace detail { template< class T, class U > concept SameHelper = std::is_same_v<T, U>; } template< class T, class U > concept same_as = detail::SameHelper<T, U> && detail::SameHelper<U, T>; |
[edit] See also
| (C++11) |
checks if two types are the same (class template) |

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.
