Namespaces
Variants

std::meta::has_inaccessible_subobjects

From cppreference.com
< cpp | meta
 
 
 
Reflection library
 
Reflection types and queries
Reflection queries
Reflection layout queries
Type properties
Type property queries
 
Defined in header <meta>
consteval bool has_inaccessible_subobjects(
    std::meta::info r, std::meta::access_context ctx );
(since C++26)

Returns true if the type represented by r has any non-static data member or 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 std::meta::has_inaccessible_bases(r, ctx) or std::meta::has_inaccessible_nonstatic_data_members(r, ctx) is true, otherwise false.

Exceptions

Throws std::meta::exception if the evaluation of std::meta::has_inaccessible_bases(r, ctx) or std::meta::has_inaccessible_nonstatic_data_members(r, ctx) would exit via an exception.

Example

See also

obtains the accessible base class subobjects and non-static data members of the reflected class
(function) [edit]
checks if a member is accessible in a given context
(function) [edit]
Morty Proxy This is a proxified and sanitized view of the page, visit original site.