folly::swap

Swaps two wrappers.

Synopsis

Declared in <folly/Indirect.h>

constexpr
void
swap(
    indirect& a,
    indirect& b) noexcept(noexcept(a.swap(b)));

NOTE

This function is a hidden friend of indirect, declared only inside that class: it can be found only through argument-dependent lookup.

Parameters

NameDescription
aThe first wrapper.
bThe second wrapper.