Search code examples
How do I tell if a std::variant holds any value at all?...


c++c++17std-variant

Read More
compiler error with std::variant - use of deleted function error...


c++c++17std-variant

Read More
Is it okay to inherit from an std::variant in order to make it recursive?...


c++std-variant

Read More
class with std::variant - custom [] operator based on variant content...


c++std-variant

Read More
std::variant behavior leads to an error when calling std::get inside std::visit: Is it intended?...


c++c++17std-variant

Read More
what is the cost of using std::visit...


c++std-variant

Read More
How do you write a function template that determines if two arbitrary variants are holding the same ...


c++templatesvariadic-templatesstd-variant

Read More
Implementation of a polymorphic [] operator for accessing a std::variant...


c++c++17type-deductionstd-variant

Read More
Call generic method for std::variant...


c++stdstd-variant

Read More
Recursive typedef definition using std::variant...


c++c++17std-variant

Read More
well-known overloads for std::visit does not work with reference_wrapper...


c++std-variant

Read More
emplace pointer as proper type into std::variant in template...


c++templatesstd-variant

Read More
Translating Swift enums with associated values to C++...


c++std-variant

Read More
Why does std::variant behave differently on GCC 8.5 and GCC 12.1 in respect to a `const char *` lite...


c++gccc++17std-variant

Read More
std::variant having for possible type a ptr to an array of a given type. Can I store more informatio...


c++std-variant

Read More
Function accepting a reference to std::variant...


c++c++17std-variant

Read More
How to efficiently initialize a std::variant data member in a class template...


c++templatesmove-semanticsstd-variant

Read More
How to improve compiler error messages when using C++ std::visit?...


c++compiler-errorsstd-variant

Read More
How to define class with overloaded methods for each std::variant alternative?...


c++template-meta-programmingstd-variant

Read More
invalid declarator before std::variant...


c++17state-machinestd-variantvisitors

Read More
How can I code something like a switch for std::variant?...


c++c++17std-variant

Read More
std::variant behaves differently in MSVC and gcc...


c++std-variant

Read More
Generically wrap member function of object to modify return type...


c++templatestemplate-meta-programmingstd-variantstdapply

Read More
Unable to visit a variant if one of its alternatives does not have a specific field...


c++c++17std-variant

Read More
Is it safe to call std::visit on classes with virtual functions?...


c++stdstd-variant

Read More
std::variant of std::string inside any class in constexpr context fails to compile...


c++gccc++20constexprstd-variant

Read More
C++ variant containing a map of itself...


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

Read More
how do I replace base constructor call...


c++constructorstd-variant

Read More
Techniques for cutting down on verbosity when do polymorphism via std::variant rather than inheritan...


c++compositionstd-variant

Read More
C++ compiler error: use of deleted function std::variant()...


c++compiler-errorsoption-typevariantstd-variant

Read More
BackNext