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)...}, std::move(variant));
Definition: file_dialog.hpp:6
auto visitOverloaded(std::variant< VariantTypes... > const &variant, VisitFunctionTypes &&... visitFunctions)
Definition: visit_overloaded.hpp:10
Definition: overloaded.hpp:7