◐ Shell
clean mode source ↗

std::meta::access_context::unprivileged - cppreference.com

From cppreference.com

static consteval std::meta::access_context unprivileged() noexcept;

Returns a new access_context whose associated scope is the global namespace scope, and whose designating class is the null reflection.

This scope has only access to public members.

Return value

An access_context whose associated scope is the global namespace scope.

Example

See also

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 with no associated scope (so that no access check is performed)
(public static member function) [edit]