Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
std::experi...ion::current(3) C++ Standard Libarystd::experi...ion::current(3)

NAME
       std::experimental::source_location::current	-      std::experimen-
       tal::source_location::current

Synopsis
	  static constexpr source_location current() noexcept;	(library  fun-
       damentals TS v2)

	  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.  The	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 un-
       specified.

	 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)

See also
	  constructor	 constructs a new source_location with implementation-
       defined values
			(public	member function)

http://cppreference.com		  2022.07.31	 std::experi...ion::current(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=std::experimental::source_location::current&sektion=3&manpath=FreeBSD+Ports+15.0>

home | help