template <typename... Callables>

struct MatchVariant

Defined at line 421 of file ../../sdk/lib/fidl/cpp/wire/include/lib/fidl/cpp/wire/async_binding.h

|MatchVariant| builds an overloaded callable that ergonomically visits an

|std::variant|:

std::variant

<int

, std::string> v;

auto matchers = MatchVariant {

[](int i) { ... },

[](std::string s) { ... },

};

std::visit(matchers, v);