mimic++ v9.2.1
Loading...
Searching...
No Matches
mimicpp::util::stacktrace::backend Concept Reference

Checks whether the given type satisfies the requirements of a stacktrace backend. More...

#include <Stacktrace.hpp>

Concept definition

template<typename T>
std::semiregular<std::remove_cvref_t<T>>
&& requires(backend_traits<std::remove_cvref_t<T>> traits, std::remove_cvref_t<T> const& backend, std::size_t const value) {
{ decltype(traits)::current(value) } -> std::convertible_to<std::remove_cvref_t<T>>;
{ decltype(traits)::current(value, value) } -> std::convertible_to<std::remove_cvref_t<T>>;
{ decltype(traits)::size(backend) } -> std::convertible_to<std::size_t>;
{ decltype(traits)::empty(backend) } -> util::boolean_testable;
{ decltype(traits)::description(backend, value) } -> std::convertible_to<std::string>;
{ decltype(traits)::source_file(backend, value) } -> std::convertible_to<std::string>;
{ decltype(traits)::source_line(backend, value) } -> std::convertible_to<std::size_t>;
}
Checks whether the given type satisfies the requirements of a stacktrace backend.
Definition Stacktrace.hpp:109
constexpr detail::current_fn current
Function object, which generates the current-stacktrace.
Definition Stacktrace.hpp:473
Trait type for stacktrace backends.
Definition Fwd.hpp:453

Detailed Description

Checks whether the given type satisfies the requirements of a stacktrace backend.

Template Parameters
TType to check.