[C++]Modelling an Array of multiple types using Templates
In my previous articles I talked about what templates in C++ are and it's types with examples. Here I'm going to show you a little power of templates, I'm going to model my own array which can take hold multiple types. First I'm going to model an arr...
codepadawan.hashnode.dev4 min read
Yosef Meller
Senior algorithm developer, Stratasys Inc.
It should be noted that if one's not doing it for the learning or fun, in production code it's best to use
std::array<>and not reinvent the wheel.