Namespaces
Variants

std::meta::access_context

From cppreference.com
< 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.

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) [edit]
[static]
constructs a std::meta::access_context associated with the scope of the call site
(public static member function) [edit]
constructs a std::meta::access_context associated with the scope of the global namespace
(public static member function) [edit]
[static]
constructs a std::meta::access_context with no associated scope (so that no access check is performed)
(public static member function) [edit]
constructs a std::meta::access_context with a designating class
(public member function) [edit]

Example

See also