Namespaces
Variants
Views
Actions

std::source_location::line

From cppreference.com
 
 
 
 
constexpr std::uint_least32_t line() const noexcept;
(since C++20)

Returns the line number represented by this object.

Contents

[edit] Parameters

(none)

[edit] Return value

The line number represented by this object.

An implementation is encouraged to return 0 when the line number is unknown.

[edit] Example

[edit] See also

return the column number represented by this object
(public member function) [edit]
return the file name represented by this object
(public member function) [edit]
return the name of the function represented by this object, if any
(public member function) [edit]
C++ documentation for Filename and line information