std::experimental::ranges:: Same
| Technical Specification | ||||
| Filesystem library (filesystem TS) | ||||
| Library fundamentals (library fundamentals TS) | ||||
| Library fundamentals 2 (library fundamentals TS v2) | ||||
| Library fundamentals 3 (library fundamentals TS v3) | ||||
| Extensions for parallelism (parallelism TS) | ||||
| Extensions for parallelism 2 (parallelism TS v2) | ||||
| Extensions for concurrency (concurrency TS) | ||||
| Extensions for concurrency 2 (concurrency TS v2) | ||||
| Concepts (concepts TS) | ||||
| Ranges (ranges TS) | ||||
| Reflection (reflection TS) | ||||
| Mathematical special functions (special functions TR) | ||||
| Experimental Non-TS | ||||
| Pattern Matching | ||||
| Linear Algebra | ||||
| std::execution | ||||
| Contracts | ||||
| 2D Graphics |
| Core language concepts | ||||||||||||||||||
|
||||||||||||||||||
| Object concepts | ||||||||||||||||||
| Comparison concepts | ||||||||||||||||||
| Callable concepts | ||||||||||||||||||
| URNG concept | ||||||||||||||||||
|
헤더에 정의됨
<experimental/ranges/concepts>
|
||
|
template
<
class
T,
class
U
>
concept bool Same = std:: is_same < T, U > :: value ; // 아래 참조 |
(ranges TS) | |
개념
Same<T, U>
는
T
와
U
가 동일한 타입을 나타낼 때에만 만족됩니다.
이를 사용하여 지정되었음에도 불구하고, Same < T, U > 와 std:: is_same < T, U > :: value 사이에 포괄 관계가 반드시 존재해야 하는 것은 아닙니다.
제약 조건 검사의 목적상, Same < T, U > 는 Same < U, T > 를 의미합니다.
참고 사항
제약 조건 검사에 대한 추가 요구사항이
Same
와
std::is_same
를 구분합니다.
참고 항목
|
(C++11)
|
두 타입이 동일한지 검사합니다
(클래스 템플릿) |