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 43 — 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.

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant