std::meta::has_inaccessible_bases
From cppreference.com
| Defined in header <meta>
|
||
consteval bool has_inaccessible_bases(
std::meta::info r, std::meta::access_context ctx );
|
(since C++26) | |
Returns true if the type represented by r has any direct base class that is inaccessible in the context ctx. Otherwise returns false.
Parameters
| r | - | a reflection of complete class type |
| ctx | - | an access context |
Return value
true if for any element R in std::meta::bases_of(r, std::meta::access_context::unchecked()), the result of std::meta::is_accessible(R, ctx) is false; otherwise false.
Exceptions
Throws std::meta::exception if the evaluation of std::meta::bases_of(r, std::meta::access_context::unchecked()) would exit via an exception.
Example
| This section is incomplete Reason: no example |
See also
(C++26) |
obtains the accessible direct bases of the reflected class (function) |
(C++26) |
checks if a member is accessible in a given context (function) |