folly::Expected::swap

swap

Synopsis

Declared in <folly/Expected.h>

void
swap(Expected& that) noexcept(/* see-below */);

Exception specification

This function is potentially-throwing unless std::is_nothrow_swappable_v<Value> && std::is_nothrow_swappable_v<Error>.

Parameters

NameDescription
thatThe Expected to swap contents with.