epitaph overloads

Synopses

Declared in <folly/result/epitaph.h>

epitaph

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

Annotates the error state of a result<T> with an epitaph message.

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

Return Value

  • The annotated error‐or‐stopped state.

  • The result, with its error state annotated when present.

Parameters

Name

Description

eos

The error‐or‐stopped state to annotate.

snl

The format string and captured source location.

args

Format arguments for the annotation message.

r

The result to annotate.

Created with MrDocs