I play with patterns. I am not trying to reinvent std :: vector, I am trying to understand patterns in C ++.
Can I do the following?
template <typename T> typedef struct{ size_t x; T *ary; }array;
What I'm trying to do is the basic template version:
typedef struct{ size_t x; int *ary; }iArray;
It seems like it works if I use a class instead of struct, so this is not possible with typedef structs?
c ++ struct class templates
monkeyking Mar 15 2018-10-15T00: 00Z
source share