In Place Construction
std::variant has two in_place helpers which this lesson elaborates on. Let's read more about them below!
We'll cover the following...
We'll cover the following...
std::variant and in_place helpers
std::variant has two in_place helpers that you can use:
• std::in_place_type - used to specify which type you want to change/set in the variant
• std::in_place_index ...