Search code examples
std::visit and std::variant usage...


c++c++17std-variant

Read More
How to use alternative types of std::variant polymorphically...


c++std-variant

Read More
What will destructor of a std::variant do if it contains void* data...


c++memory-leaksc++17void-pointersstd-variant

Read More
Does std::variant provide functionality similar to boost::variant<>::types?...


c++c++17boost-variantboost-mplstd-variant

Read More
std::bind to a std::variant containing multiple std::function types...


c++c++17std-functionstd-variant

Read More
How is std::optional never "valueless by exception"?...


c++c++17stdoptionalstd-variant

Read More
How can I pass the current alternative type of std::variant to a callable?...


c++c++17std-variant

Read More
Why does a std::variant compile with begin and end iterators?...


c++std-variant

Read More
Is there boost::visit like std::visit, for boost::variant?...


c++boostc++14boost-variantstd-variant

Read More
Overloading a function with std::enable_if to avoid template substitution error...


c++c++17enable-ifstd-variant

Read More
May I change the held type in a std::variant from within a call to std::visit...


c++c++17std-variant

Read More
Predefined type list passed to a std::variant...


c++templatesc++17typeliststd-variant

Read More
How to use std::visit with std::variant containing enum...


c++c++17std-variant

Read More
How to get a reference to variant’s value?...


c++visual-c++std-variant

Read More
get currently held typeid of std::variant (like boost::variant type())...


c++boosttypeidstd-variant

Read More
Why is sizeof( std::variant< char > ) == 8 when using libc++ and not 2 (like with MSVC's S...


c++c++17libc++std-variant

Read More
In C++, how to make a variant that can contain a vector of of same variant?...


c++vectorc++17self-referencestd-variant

Read More
how to return a specific type from a variant using a visitor?...


c++templatesc++17variadic-templatesstd-variant

Read More
What should I use instead of void as one of the alternative types in an variant?...


c++c++17variantmonostatestd-variant

Read More
How to compare std::variant of custom classes?...


c++stdstd-variant

Read More
How to make a map key to be of two different data types?...


c++stdtuplestd-variant

Read More
How to simplify std::variant class types...


c++c++17variantstd-variant

Read More
Why `std:variant`'s `operator=(T&& t)`'s noexcept spec doesn't depend on inner t...


c++variantnothrowstd-variant

Read More
BackNext