I'm performing research on type systems. In this project, I'm looking into how Variants, structural subtyping, universal polymorphism, and existential polymorphism are used in popular languages. Such functions are available in functional languages such as heskell and ocaml. But I'm curious whether a popular language like C++ has the above features. That is, how C++ was implemented.
variants
structural subtyping
universal polymorphism
Existential polymorphism.
variants
structural subtyping
universal polymorphism
Existential polymorphism.