Standard library header <source_location> (C++20)
From cppreference.com
This header is part of the utility library.
Classes | |
(C++20) | a class representing information about the source code, such as file names, line numbers, and function names (class) |
[edit]Synopsis
namespace std {struct source_location;}
[edit]Class std::source_location
namespace std {struct source_location {// source location constructionstatic consteval source_location current()noexcept;constexpr source_location()noexcept; // source location field accessconstexpr uint_least32_t line()constnoexcept;constexpr uint_least32_t column()constnoexcept;constexprconstchar* file_name()constnoexcept;constexprconstchar* function_name()constnoexcept; private: uint_least32_t line_;// exposition only uint_least32_t column_;// exposition onlyconstchar* file_name_;// exposition onlyconstchar* function_name_;// exposition only};}