std::source_location::column
From cppreference.com
< cpp | utility | source location
constexpr std::uint_least32_t column() const noexcept; |
(since C++20) | |
Returns an implementation-defined value representing some offset from the start of the line represented by this object (i.e., the column number). Column numbers are presumed to be 1-indexed.
Parameters
(none)
Return value
An implementation-defined value representing some offset from the start of the line represented by this object (i.e., the column number).
An implementation is encouraged to use 0
when the column number is unknown.
Example
This section is incomplete Reason: no example |
See also
return the line number represented by this object (public member function) | |
return the file name represented by this object (public member function) | |
return the name of the function represented by this object, if any (public member function) |