cpp/utility/source location/current

Constructs a new object corresponding to the location of the call site.

Parameters
(none)

Return value
If is invoked directly (via a function call that names ),  it returns a  object with implementation-defined values representing the location of the call. The values should be affected by the preprocessor directive in the same manner as the predefined macros  and.

If is used in a default member initializer, the return value corresponds to the location of the constructor definition or aggregate initialization that initializes the data member.

If is used in a default argument, the return value corresponds to the location of the call to  at the call site.

If is invoked in any other manner, the return value is unspecified.