std::experi...ion::current(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

🌸 NAME 🌸

okay so bestie, welcome to the std::experi...ion::current(3) page β€” it's from the C++ Standard Libary, and the NAME situation is serving duplicate realness:

  • std::experimental::source_location::current β€” std::experimental::source_location::current

periodt. πŸ’…

✨ Synopsis ✨

static constexpr source_location current() noexcept;

This is the (library fundamentals TS v2) version, and it constructs a new source_location object. 🫢

πŸ’– Return value πŸ’–

If current() is invoked directly (via a function call that names current()), it returns a source_location object with implementation-defined values representing the location of the call. Those values should be affected by the #line preprocessor directive in the same manner as the predefined macros __LINE__ and __FILE__. ✨

If current() is invoked in any other manner, the return value is unspecified. 😭 That's the vibe check β€” don't count on it.

πŸ“ Remarks

If current() is used in an initializer for a non-static data member, the return value corresponds to the location of the constructor or aggregate initialization that initializes the data member. 🧚

πŸŽ€ Notes πŸŽ€

When current() is used in a default argument, the return value will correspond to the location of the call to current() at the call site. πŸ’–

πŸ¦‹ Parameters πŸ¦‹

(none) β€” literally none, bestie. πŸ“

πŸ”₯ See also πŸ”₯

  • constructor β€” constructs a new source_location with implementation-defined values (public member function).

cute sign-off time: source http://cppreference.com, version/date 2024.06.10, page std::experi...ion::current(3) β€” slay, bye bestie! πŸ‘‘πŸŒˆ

πŸ“¦ where this page comes from