Annotates the error state of a result<T> with a stack-trace epitaph.
Declared in <folly/result/epitaph.h>
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);
Value inputs are returned unchanged.
The result, with its error state annotated when present.
| Name | Description |
|---|---|
| r | The result to annotate. |
| snl | The format string and captured source location. |
| args | Format arguments for the annotation message. |