Auto populating Lists in C++ at compile time

Originally published at: Auto populating Lists in C++ at compile time - Patterns in the Machine

Before I get into the how to auto-populate lists, let’s talk about why I would want to. Auto populating lists is useful when you have a set of statically allocated instances that need to be iterated over at run time. Some examples: In an embedded system there is typically a CLI interface running over a…