Like std::source_location, but allowing to override the function name.
More...
#include <logging.h>
|
| | SourceLocation (const char *func, std::source_location loc=std::source_location::current()) |
| | The func argument must be constructed from the C++11 func macro. More...
|
| |
| std::string_view | file_name () const |
| |
| std::uint_least32_t | line () const |
| |
| std::string_view | function_name_short () const |
| |
Like std::source_location, but allowing to override the function name.
Definition at line 41 of file logging.h.
◆ SourceLocation()
| SourceLocation::SourceLocation |
( |
const char * |
func, |
|
|
std::source_location |
loc = std::source_location::current() |
|
) |
| |
|
inline |
◆ file_name()
| std::string_view SourceLocation::file_name |
( |
| ) |
const |
|
inline |
◆ function_name_short()
| std::string_view SourceLocation::function_name_short |
( |
| ) |
const |
|
inline |
◆ line()
| std::uint_least32_t SourceLocation::line |
( |
| ) |
const |
|
inline |
◆ m_func
| std::string_view SourceLocation::m_func |
|
private |
◆ m_loc
| std::source_location SourceLocation::m_loc |
|
private |
The documentation for this class was generated from the following file: