mimic++ v6
Loading...
Searching...
No Matches
mimicpp::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::copyable<T>
&& requires(backend_traits<std::remove_cvref_t<T>> traits, const std::remove_cvref_t<T>& backend, const std::size_t value) {
{ decltype(traits)::current(value) } -> std::convertible_to<std::remove_cvref_t<T>>;
{ decltype(traits)::size(backend) } -> std::convertible_to<std::size_t>;
{ decltype(traits)::empty(backend) } -> std::convertible_to<bool>;
{ 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:104
constexpr detail::current_hook::current_fn current
Function object, which generates the current-stacktrace.
Definition Stacktrace.hpp:374
Trait type for stacktrace backends.
Definition Stacktrace.hpp:97

Detailed Description

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

Template Parameters
TType to check.