Monthly Archives: July 2017

Syntax [crayon-5d5e8c931bb7c201817444/] std::variant is a modern, safer alternative to the old unions. What are the differences? std::variant is type-safe: the variant knows what type it currently holds – but needs more memory space in order to do so std::variant calls the destructor of the object when it changes its type […]

Library feature: std::variant