Search code examples
Default-construct all the types in a std::variant and put them in a std::vector...


c++templatesc++17template-meta-programmingstd-variant

Read More
Compare std::variant with int using C++20 <=> is not a constant expression...


c++c++17c++20std-variant

Read More
Provide a operator== for std::variant...


c++operator-overloadingc++17stdmapstd-variant

Read More
Why does clang handle exceptions for this trivial std::variant code?...


c++gccclangc++17std-variant

Read More
Assignment operator for std::variant...


c++stdmapassignment-operatorstd-variant

Read More
std::bad_variant_access error when trying to store value to std::variant in map...


c++c++17stdmapstd-variant

Read More
std::variant visitor where the visitor modifies the variant...


c++c++17std-variant

Read More
Transitioning Boost Spirit parser from boost::variant to std::variant...


c++boostboost-spiritboost-variantstd-variant

Read More
Casting a variant to super set variant or a subset variant...


c++c++17std-variant

Read More
std::visit a std::variant with overloaded free-function instead of function-object...


c++c++17non-member-functionsstd-variantstdapply

Read More
Split a given std::variant type by a given criteria...


c++c++17std-variant

Read More
How to call std::visit inside a lambda with a visitor that is a function object captured by value...


c++lambdac++17generic-lambdastd-variant

Read More
Do elements in `std::array<int, N>` as a class member get default intialised...


c++constructorinitializationstdarraystd-variant

Read More
std::visit does not recognise types...


c++lambdageneric-lambdastd-variant

Read More
Throw exception on missing function overload with std::variant instead of compile time error...


c++exceptioncompiler-errorsc++17std-variant

Read More
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
BackNext