std::meta::current_namespace
From cppreference.com
| Defined in header <meta>
|
||
consteval std::meta::info current_namespace();
|
(since C++26) | |
Returns a reflection of the namespace whose scope is the smallest namespace scope that encloses the call site.
Return value
A reflection that represents the namespace whose scope encloses the call site, as described above.
Notes
The result may represent an inline namespace or unnamed namespace.
If this function is used in a default member initializer or default argument, the call site is considered to be the point that uses the initializer or default argument (not where the call lexically appears).
Example
| This section is incomplete Reason: no example |
See also
[static] |
constructs a std::meta::access_context associated with the scope of the call site (public static member function of std::meta::access_context)
|