Like std::source_location, but allowing to override the function name.
More...
#include <log.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 18 of file log.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 |
Definition at line 28 of file log.h.
◆ function_name_short()
| std::string_view SourceLocation::function_name_short |
( |
| ) |
const |
|
inline |
Definition at line 30 of file log.h.
◆ line()
| std::uint_least32_t SourceLocation::line |
( |
| ) |
const |
|
inline |
Definition at line 29 of file log.h.
◆ m_func
| std::string_view SourceLocation::m_func |
|
private |
Definition at line 33 of file log.h.
◆ m_loc
| std::source_location SourceLocation::m_loc |
|
private |
Definition at line 34 of file log.h.
The documentation for this class was generated from the following file: