std::meta::has_inaccessible_subobjects
cppreference.net에서
| 헤더 <meta>
|
||
consteval bool has_inaccessible_subobjects(
std::meta::info r, std::meta::access_context ctx );
|
(C++26부터)에 정의됨 | |
true를 반환합니다. r이 나타내는 타입이 컨텍스트 ctx에서 접근할 수 없는 비정적 데이터 멤버 또는 직접 기본 클래스를 가지고 있는 경우. 그렇지 않으면 false를 반환합니다.
매개변수
| r | - | 완전한 클래스 타입의 리플렉션 |
| ctx | - | 접근 컨텍스트 |
반환값
truestd::meta::has_inaccessible_bases(r, ctx) 또는 std::meta::has_inaccessible_nonstatic_data_members(r, ctx)이 true이면, 그렇지 않으면 false.
예외
std::meta::exception을 던집니다. std::meta::has_inaccessible_bases(r, ctx) 또는 std::meta::has_inaccessible_nonstatic_data_members(r, ctx)의 평가가 예외로 인해 종료되는 경우.
예제
| 이 섹션은 완전하지 않습니다 이유: 예제 없음 |
참고 항목
(C++26) |
리플렉션된 클래스의 접근 가능한 기본 클래스 하위 객체와 비정적 데이터 멤버를 얻습니다 (함수) |
(C++26) |
주어진 컨텍스트에서 멤버에 접근할 수 있는지 확인합니다 (함수) |