decay 클래스
비참조, 비상수, 비휘발성 형식 또는 형식에 대한 포인터를 만듭니다.
template<class Ty>
struct decay;
template<class T>
using decay_t = typename decay<T>::type;
매개 변수
매개 변수 |
설명 |
---|---|
Ty |
수정할 형식입니다. |
설명
형식 한정자의 인스턴스는 다음과 같은 단계로 정의된 수정된 형식을 보관합니다.
U 형식은 remove_reference<Ty>::type으로 정의되어 있습니다.
is_array<U>::value가 true일 경우 수정된 형식 type은 remove_extent<U>::type *입니다.
그렇지 않은 경우, is_function<U>::value가 true이면 수정된 형식 type은 add_pointer<U>::type입니다.
그렇지 않은 경우, 수정된 형식 type은 remove_cv<U>::type입니다.
요구 사항
헤더: <type_traits>
네임스페이스: std