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...

Markdown supported · ⌘↵ to post
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.