Files
2025-10-25 03:02:53 +03:00

28 lines
1.1 KiB
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[concept.same]
# 18 Concepts library [[concepts]](./#concepts)
## 18.4 Language-related concepts [[concepts.lang]](concepts.lang#concept.same)
### 18.4.2 Concept same_as [concept.same]
[🔗](#itemdecl:1)
`template<class T, class U>
concept [same-as-impl](#concept:same-as-impl "18.4.2Concept same_­as[concept.same]") = [is_same_v](meta.type.synop#lib:is_same_v "21.3.3Header <type_­traits> synopsis[meta.type.synop]")<T, U>; // exposition only
template<class T, class U>
concept [same_as](#concept:same_as "18.4.2Concept same_­as[concept.same]") = [same-as-impl](#concept:same-as-impl "18.4.2Concept same_­as[concept.same]")<T, U> && [same-as-impl](#concept:same-as-impl "18.4.2Concept same_­as[concept.same]")<U, T>;
`
[1](#1)
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/concepts.tex#L309)
[*Note [1](#note-1)*:
[same_as](#concept:same_as "18.4.2Concept same_­as[concept.same]")<T, U> subsumes [same_as](#concept:same_as "18.4.2Concept same_­as[concept.same]")<U, T> and
vice versa[.](#1.sentence-1)
— *end note*]