It is possible to store either structs or pointer to structs ?
Opened this issue · 1 comments
estebanzimanyi commented
In STL it is possible to define, e.g.,
vector<SweepEvent> ev;
vector<SweepEvent*> evp;
After looking in the documentation, the code, and the examples I was not able to determine whether this can be done in CTL.
Thanks for your answer.
Esteban
Junming-Liang commented
I, too, have entertained similar contemplations. You can encapsulate pointers within the struct to achieve the sought-after effect.
typedef struct SweepEventPoint{ SweepEvent *point};
#define POD
#define NOT_INTEGRAL
#define T SweepEventPoint
#include "ctl/vector.h"