See Public API for a list of names and headers that are part of the public HPX API.
std::ostream &operator<<(std::ostream &os, source_location const &loc)#
- #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:
- 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.
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
using instead = hpx::source_location#
- using instead = hpx::source_location#
- std::ostream &operator<<(std::ostream &os, source_location const &loc)#