17 Language support library [support]

17.8 Source location [support.srcloc]

17.8.2 Class source_location [support.srcloc.class]

17.8.2.2 Creation [support.srcloc.cons]

Table 39: Value of object returned by current[tab:support.srcloc.current]
Element
Value
line_
A presumed line number ([cpp.predefined]).
Line numbers are presumed to be 1-indexed; however, an implementation is encouraged to use 0 when the line number is unknown.
column_
An implementation-defined value denoting some offset from the start of the line denoted by line_.
Column numbers are presumed to be 1-indexed; however, an implementation is encouraged to use 0 when the column number is unknown.
file_name_
A presumed name of the current source file ([cpp.predefined]) as an ntbs.
function_name_
A name of the current function such as in __func__ ([dcl.fct.def.general]) if any, an empty string otherwise.