Swaps the state of two generators.

Synopsis

Declared in <folly/coro/Generator.h>

template<typename T>
void
swap(
    Generator<T>& a,
    Generator<T>& b) noexcept;

Parameters

Name

Description

a

The first generator.

b

The second generator.

Created with MrDocs