I'm working on a project for an embedded processor where I have some data which is created at runtime, and pointers to this data need to be arranged into several binary tree-like data structures for use by the program.
These structures will be fixed for the duration of the program, however, I would like the option at compile time to be able to quickly change how the trees used are structured. Something hopefully more elegant and easily re configurable than say, a function or macro for every tree involved that repeatedly calls the "AddNode" function in the proper order for each underlying data element and node of the tree. Thanks for any suggestions!