Namespaces
Variants

std::meta::access_context

From cppreference.net
< cpp | meta
Defined in header <meta>
struct access_context;
(since C++26)

The class access_context represents a namespace, class, or function from which queries pertaining to access rules may be performed. It may also have an associated designating class (see via).

The type access_context is a structural non-aggregate type. Values of type access_context are template-argument-equivalent if their associated scopes and designating classes are the same.

Member functions

(constructor)
[deleted]
the default constructor is deleted
(public member function)
returns the associated scope and designating class, respectively
(public member function)
[static]
constructs a std::meta::access_context associated with the scope of the call site
(public static member function)
constructs a std::meta::access_context associated with the scope of the global namespace
(public static member function)
[static]
constructs a std::meta::access_context with no associated scope (so that no access check is performed)
(public static member function)
constructs a std::meta::access_context with a designating class
(public member function)

Example

See also

checks if a member is accessible in a given context
(function)
obtains the accessible direct members of the reflected class or namespace
(function)
(C++26)
obtains the accessible direct bases of the reflected class
(function)