Construct from a function name and a source location. The func argument must be constructed from the C++11 func macro. Ref: https://en.cppreference.com/w/cpp/language/function.html#func Non‐static string literals are not supported.

Synopsis

Declared in <util/log.h>

explicit
SourceLocation(
    char const* func,
    std::source_location loc = std::source_location::current());

Parameters

Name

Description

func

The overriding function name (from func).

loc

The underlying source location, defaulting to the call site.

Created with MrDocs