static consteval source_location current() noexcept;
Element | Value | |
line_ | A presumed line number ([cpp.predefined]). Line numbers are presumed to be 1-indexed;
however, an implementation is encouraged to use 0
when the line number is unknown. | |
column_ | ||
file_name_ | ||
function_name_ | A name of the current function
such as in __func__ ([dcl.fct.def.general]) if any,
an empty string otherwise. |
constexpr source_location() noexcept;
constexpr uint_least32_t line() const noexcept;
constexpr uint_least32_t column() const noexcept;
constexpr const char* file_name() const noexcept;
constexpr const char* function_name() const noexcept;