std::experimental:: erased_type
From cppreference.net
<
cpp
|
experimental
C++
Experimental
| 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 |
|
헤더 파일에 정의됨
<experimental/utility>
|
||
|
struct
erased_type
{
}
;
|
(라이브러리 펀더멘털 TS)
(라이브러리 펀더멘털 TS v3에서 제거됨) |
|
erased_type
클래스는 빈 구조체로, 실제 타입이 런타임에 결정되는 상황에서 타입을 위한 자리 표시자 역할을 합니다. 예를 들어,
type-erased allocators
를 사용하는 클래스에서, 중첩 typedef
allocator_type
은
erased_type
의 별칭입니다.
참고 사항
erased_type
는 LFTS v3에서 제거되었습니다. 왜냐하면 타입 소거에는
std::
pmr
::
polymorphic_allocator
<>
가 더 적합하기 때문입니다.