I am reading a blog about building a custom heterogeneous container in C++. In the blog, the author used visitor pattern to print out each element of the container ordered b