HPX_CURRENT_SOURCE_LOCATION, hpx::source_location
HPX_CURRENT_SOURCE_LOCATION, hpx::source_location#
Defined in header hpx/source_location.hpp.
See Public API for a list of names and headers that are part of the public HPX API.
Defines
-
HPX_CURRENT_SOURCE_LOCATION()#
-
namespace hpx
Functions
-
std::ostream &operator<<(std::ostream &os, source_location const &loc)#
-
struct source_location#
- #include <source_location.hpp>
This contains the location information where HPX_ASSERT has been called The source_location class represents certain information about the source code, such as file names, line numbers, and function names. Previously, functions that desire to obtain this information about the call site (for logging, testing, or debugging purposes) must use macros so that predefined macros like and are expanded in the context of the caller. The source_location class provides a better alternative. source_location meets the DefaultConstructible, CopyConstructible, CopyAssignable and Destructible requirements. Lvalue of source_location meets the Swappable requirement. Additionally, the following conditions are true:
std::is_nothrow_move_constructible_v<std::source_location>
std::is_nothrow_move_assignable_v<std::source_location>
- It is intended that source_location has a small size and can be copied efficiently. It is unspecified whether the copy/move constructors and the copy/move assignment operators of source_location are trivial and/or constexpr.
std::is_nothrow_swappable_v<std::source_location>
Public Functions
-
inline constexpr std::uint_least32_t line() const noexcept#
return the line number represented by this object
-
inline constexpr char const *file_name() const noexcept#
return the file name represented by this object
-
inline constexpr char const *function_name() const noexcept#
return the name of the function represented by this object, if any
-
namespace assertion
Typedefs
-
using instead = hpx::source_location#
-
using instead = hpx::source_location#
-
std::ostream &operator<<(std::ostream &os, source_location const &loc)#