List Question
20 TechQA 2024-03-07T09:26:00.897000Program with std::variant works in msvc but not in gcc
80 views
Asked by Alan
Is there an option to create a vector that contains functions with different return types?
162 views
Asked by konradtrubilo
How to store 3 different types in a sequential container (e.g., std::vector)
119 views
Asked by 24n8
How to copy between variant of type and variant of type pointer
72 views
Asked by PiotrK
How to add a key/value pair to a map of variants in cpp
68 views
Asked by ManikSin
Unable to update std::variant in consteval context
198 views
Asked by Aakash Gupta
How to store parametric, strongly typed function for a text-based command console
156 views
Asked by alexpanter
How to delegate constructors for std::variant?
210 views
Asked by phinz
How can I initialize this std::variant data member which has two similar alternatives?
161 views
Asked by DuduArbel
Is there a simpler way to convert a variant to another variant with const versions of the same types?
113 views
Asked by jwezorek
Is there a bug in the Microsoft version of std::variant?
131 views
Asked by bradgonesurfing
Is it possible to emplace a non copyable, non moveable into a std::variant
111 views
Asked by bradgonesurfing
Letting compiler write operator==, <, > etc. via spaceship-operator
134 views
Asked by glades
Is it possible to use std::visit on variant that hold same type more than once?
293 views
Asked by Jemtaly
How to store either std::string or std::string_view in a std::variant?
260 views
Asked by kteperin
How do I tell if a std::variant holds any value at all?
1k views
Asked by Joe
compiler error with std::variant - use of deleted function error
174 views
Asked by Sir2B
Is it okay to inherit from an std::variant in order to make it recursive?
285 views
Asked by jwezorek
Select & build a compile-time tuple structure based on a runtime-provided mapping
68 views
Asked by user3641187
Why does decltype fail to declare a reference type in lambda arguments?
88 views
Asked by Phiv