◐ Shell
clean mode source ↗

std::meta::access_context - cppreference.com

From cppreference.com

(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) [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

checks if a member is accessible in a given context
(function) [edit]
obtains the accessible direct members of the reflected class or namespace
(function) [edit]
obtains the accessible direct bases of the reflected class
(function) [edit]