|
mimic++ v9.2.1
|
A thin wrapper around general source-location info. More...
#include <SourceLocation.hpp>
Public Member Functions | |
| ~SourceLocation ()=default | |
| explicit (false) const expr SourceLocation(auto &&... canary | |
Compatibility constructor, used in cases where std::source_location is not available. | |
| SourceLocation & | operator= (SourceLocation const &)=default |
| SourceLocation (SourceLocation &&)=default | |
| SourceLocation & | operator= (SourceLocation &&)=default |
| constexpr std::string_view | file_name () const noexcept |
| constexpr std::string_view | function_name () const noexcept |
| constexpr std::size_t | line () const noexcept |
Public Attributes | |
| std::string_view const | fileName = __builtin_FILE() |
| std::string_view const std::string_view const | functionName = __builtin_FUNCTION() |
| std::string_view const std::string_view const std::size_t const | line |
Friends | |
| constexpr bool | operator== (SourceLocation const &lhs, SourceLocation const &rhs) noexcept |
A thin wrapper around general source-location info.
By default, mimic++ uses the C++20 std::source_location feature. However, this feature is not available on all platforms or with all compilers, for which it then automatically falls back to specific compiler intrinsics.
|
default |
|
default |
|
nodiscard |
Compatibility constructor, used in cases where std::source_location is not available.
| canary | Parameter-pack, preventing users modifying the relevant default arguments. |
| fileName | The deduced file name. |
| functionName | The deduced function name. |
| line | The deduced line number. |
|
inlinenodiscardconstexprnoexcept |
|
inlinenodiscardconstexprnoexcept |
|
inlinenodiscardconstexprnoexcept |
|
default |
|
default |
|
friend |
| std::string_view const mimicpp::util::SourceLocation::fileName = __builtin_FILE() |
| std::string_view const std::string_view const mimicpp::util::SourceLocation::functionName = __builtin_FUNCTION() |
| std::string_view const std::string_view const std::size_t const mimicpp::util::SourceLocation::line |