9 template <
typename... VariantTypes,
typename... VisitFunctionTypes>
10 auto visitOverloaded(std::variant<VariantTypes...>
const& variant, VisitFunctionTypes&&... visitFunctions)
12 return std::visit(
overloaded{std::forward<VisitFunctionTypes>(visitFunctions)...}, variant);
15 template <
typename... VariantTypes,
typename... VisitFunctionTypes>
16 auto visitOverloaded(std::variant<VariantTypes...>& variant, VisitFunctionTypes&&... visitFunctions)
18 return std::visit(
overloaded{std::forward<VisitFunctionTypes>(visitFunctions)...}, variant);
21 template <
typename... VariantTypes,
typename... VisitFunctionTypes>
22 auto visitOverloaded(std::variant<VariantTypes...>&& variant, VisitFunctionTypes&&... visitFunctions)
24 return std::visit(
overloaded{std::forward<VisitFunctionTypes>(visitFunctions)...}, std::move(variant));
Definition authorization.hpp:10
auto visitOverloaded(std::variant< VariantTypes... > const &variant, VisitFunctionTypes &&... visitFunctions)
Definition visit_overloaded.hpp:10
Definition overloaded.hpp:7