SpiceQA
Questions
Tags
Users
Badges
std-variant
44 Questions
Newest
Active
Unanswered
Frequent
More
Score
View
Card
Compact
Techniques for cutting down on verbosity when do polymorphism via std::variant rather than inheritance
user_1413244
0
•
asked Dec 7, 2021
3
1
65
std-variant
composition
c++
"increment" `std::variant` alternative
user_668125
0
•
asked Oct 22, 2021
2
4
201
std-variant
c++20
c++
C++17 std::variant is slower than dynamic polymorphism?
user_4116268
0
•
asked Oct 5, 2021
3
1
495
static-polymorphism
std-variant
c++17
polymorphism
c++
Extract a c++ variant type from a list of type names
user_2828925
0
•
asked Sep 30, 2021
2
1
438
std-variant
c++17
templates
c++
Is there any practical reason why std::get_if (std::variant) takes a variant argument by pointer instead of by value/&/const&?
user_5825294
0
•
asked Sep 21, 2021
6
2
1541
pass-by-pointer
std-variant
c++17
pass-by-reference
c++
Is there std::variant and std::visit way to replace old legacy dispatch for messy code?
user_4433781
0
•
asked Sep 21, 2021
2
2
221
std-variant
c++17
visitor-pattern
c++
Observing the state of a variant during construction
user_1495627
0
•
asked Sep 3, 2021
3
1
86
std-variant
c++
Why do std::variant implementations take more than 1 byte for variant of empty types?
user_700825
0
•
asked Sep 3, 2021
10
1
442
std-variant
c++20
c++
Assignment operator of std::variant of custom type with deleted special member functions?
user_11638718
0
•
asked Aug 31, 2021
5
1
213
std-variant
c++20
language-lawyer
assignment-operator
c++
inconsistent behavior in regard to passing a pointer to a C++17 Standard Variant to function expecting const reference
user_1246117
0
•
asked Aug 13, 2021
3
1
116
std-variant
c++17
pointers
reference
c++
Prev
Prev
1
2
(current)
3
4
5
Next
Next
Hot Questions