folly::stack_epitaph

stack_epitaph overloads

Synopses

Declared in <folly/result/epitaph.h>

stack_epitaph

template<
    /* implementation-defined */ Opt = detail::stack_epitaph_opts{},
    typename... Args>
error_or_stopped
stack_epitaph(
    error_or_stopped eos,
    ext::format_string_and_location<Args...> snl = "",
    Args const&... args);
» more...

Annotates the error state of a result<T> with a stack-trace epitaph.

template<
    /* implementation-defined */ Opt = detail::stack_epitaph_opts{},
    typename T,
    typename... Args>
result<T>
stack_epitaph(
    result<T> r,
    ext::format_string_and_location<Args...> snl = "",
    Args const&... args);
» more...

Return Value

  • The error-or-stopped state annotated with a stack-trace epitaph.
  • The result, with its error state annotated when present.

Parameters

NameDescription
eosThe error-or-stopped state to annotate.
snlThe format string and captured source location.
argsFormat arguments for the annotation message.
rThe result to annotate.