Namespaces
Variants

std:: constructible_from

From cppreference.net
헤더에 정의됨 <concepts>
template < class T, class ... Args >

concept constructible_from =

std:: destructible < T > && std:: is_constructible_v < T, Args... > ;
(C++20부터)

constructible_from 개념은 T 타입의 변수가 주어진 인수 타입 집합 Args... 로 초기화될 수 있음을 지정합니다.

참조문헌

  • C++23 표준 (ISO/IEC 14882:2024):
  • 18.4.11 컨셉트 constructible_from [concept.constructible]
  • C++20 표준 (ISO/IEC 14882:2020):
  • 18.4.11 컨셉트 constructible_from [concept.constructible]

참고 항목

특정 인수들에 대한 생성자를 가지는지 확인합니다
(클래스 템플릿)