[#SourceLocation-2constructor]
= xref:SourceLocation.adoc[SourceLocation]::SourceLocation
:relfileprefix: ../
:mrdocs:

Construct from a function name and a source location&period; The func argument must be constructed from the C&plus;&plus;11 *func* macro&period; Ref&colon; https&colon;&sol;&sol;en&period;cppreference&period;com&sol;w&sol;cpp&sol;language&sol;function&period;html&num;func Non&hyphen;static string literals are not supported&period;

== Synopsis

Declared in `&lt;util&sol;log&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
SourceLocation(
    char const* func,
    std::source&lowbar;location loc = std&colon;&colon;source&lowbar;location&colon;&colon;current());
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *func*
| The overriding function name (from *func*)&period;
| *loc*
| The underlying source location, defaulting to the call site&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
