Search code examples
Is there any practical reason why std::get_if (std::variant) takes a variant argument by pointer ins...


c++c++17pass-by-referencestd-variantpass-by-pointer

Read More
Why is my struct destructed twice with `std::variant` and `std::monostate`?...


c++c++17std-variant

Read More
vector containing both string and string_view using std::variant...


c++std-variant

Read More
Cleaner way to specify type to get from a std::variant?...


c++c++17std-variant

Read More
Program with std::variant works in msvc but not in gcc...


c++initializationc++17variantstd-variant

Read More
Why isn't std::variant allowed to equal compare with one of its alternative types?...


c++c++17std-variant

Read More
Is there an option to create a vector that contains functions with different return types?...


c++vectorstd-variant

Read More
How to copy between variant of type and variant of type pointer...


c++stlstd-variant

Read More
Iterate through a map of std::variant...


c++c++17stdmapvariantstd-variant

Read More
Where to use std::variant over union?...


c++c++17unionvariantstd-variant

Read More
C++ std::variant vs std::any...


c++c++17std-variantstdany

Read More
How to store parametric, strongly typed function for a text-based command console...


c++c++17interpreterstd-variant

Read More
How to delegate constructors for std::variant?...


c++constructorstd-variant

Read More
Is there a simpler way to convert a variant to another variant with const versions of the same types...


c++const-correctnessstd-variant

Read More
Letting compiler write operator==, <, > etc. via spaceship-operator...


c++comparisonstd-variantspaceship-operator

Read More
How to store either std::string or std::string_view in a std::variant?...


c++c++20stdstringstring-viewstd-variant

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