Spec-Zone.ru › C++

std::meta::access_context

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

Example

See also

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

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/cpp/meta/access_context

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API