Assertion message with its location. More...
#include <assert.hpp>
Public Member Functions | |
| template<typename S> requires std::convertible_to<const S&, std::string_view> | |
| consteval | AssertMessage (const S &fmt, std::source_location loc=std::source_location::current()) |
Public Attributes | |
| std::format_string< const T &... > | format |
| std::source_location | location |
Assertion message with its location.
Format string of assertThat : the format string is checked at compile time against the arguments types (as std::format does) and the location of the call is captured.
It is built implicitly from a string literal ; it should not be used directly.
| T | the message's arguments types |
|
consteval |
AssertMessage constructor
| S | the format string type (string literal) |
| fmt | the format string |
| loc | the assertion location (default to caller location) |
| std::format_string<const T&...> anch::ut::AssertMessage< T >::format |
Format string checked at compile time
| std::source_location anch::ut::AssertMessage< T >::location |
Assertion location