or_unwind_epitaph overloads

Synopses

Declared in <folly/result/or_unwind_epitaph.h>

Syntax sugar for or_unwind(epitaph(...)) on an error‐or‐stopped value.

template<typename... Args>
auto
or_unwind_epitaph(
    error_or_stopped eos,
    ext::format_string_and_location<Args...> snl = "",
    Args const&... args);

or_unwind_epitaph

template<
    typename T,
    typename... Args>
auto
or_unwind_epitaph(
    result<T> r,
    ext::format_string_and_location<Args...> snl = "",
    Args const&... args);

Return Value

  • An or_unwind wrapper carrying the annotated error.

  • An or_unwind wrapper carrying the annotated result.

Parameters

Name

Description

eos

The error‐or‐stopped state to annotate.

snl

The format string and source location for the epitaph message.

args

The arguments substituted into the epitaph message.

r

The result whose error path receives the epitaph.

Created with MrDocs