std::source_location::source_location

From cppreference.com
 
 
Utilities library
General utilities
Date and time
Function objects
Formatting library (C++20)
(C++11)
Relational operators (deprecated in C++20)
Integer comparison functions
(C++20)
Swap and type operations
(C++14)
(C++11)
(C++11)
(C++11)
(C++17)
Common vocabulary types
(C++11)
(C++17)
(C++17)
(C++17)
(C++17)

Elementary string conversions
(C++17)
(C++17)
 
 
constexpr source_location() noexcept;
(1) (since C++20)
source_location( const source_location& other );
(2) (since C++20)
source_location( source_location&& other ) noexcept;
(3) (since C++20)
1) Constructs an source_location object of unspecified value.
2-3) Copy and move constructors. It is unspecified whether they are trivial and/or constexpr.

Parameters

other - another source_location to copy or move from

See also

[static]
constructs a new source_location corresponding to the location of the call site
(public static member function)