Audacity 3.2.0
|
Namespaces | |
namespace | detail |
Functions | |
template<typename Visitor , typename Variant , typename VariantBase = detail::deduced_variant<Variant &&>> | |
decltype(auto) | Visit (Visitor &&vis, Variant &&var) |
Mimic some of std::visit, for the case of one visitor only. More... | |
decltype(auto) Variant::Visit | ( | Visitor && | vis, |
Variant && | var | ||
) |
Mimic some of std::visit, for the case of one visitor only.
This is necessary because of limitations of the macOS implementation of some of the C++17 standard library without a minimum version of 10.13, and so let's use this even when not needed on the other platforms, instead of having too much conditional compilation
Definition at line 138 of file Variant.h.
References size, and Variant::detail::VisitHelper().
Referenced by PixelSampleMapper::GetFirstSample(), PixelSampleMapper::IsValid(), and Registry::VisitorFunctions< RegistryTraits, Reference >::Visit().