What do you think is better to use for a list consisting of structures:
struct TxItem
{
int Pos;
int Height;
WDL_String FileName;
};
WDL_PtrList or std::vector?
What do you think is better to use for a list consisting of structures:
struct TxItem
{
int Pos;
int Height;
WDL_String FileName;
};
WDL_PtrList or std::vector?
I think WDL_TypedBuf<> is more similar. WDL_PtrList has some useful methods when dealing with audio buffers. For this I’d use a std::vector.
But what about the declaration of the list in the IPopupMenu?
WDL_PtrList<Item> mMenuItems;
Similar thing could have been done with a std::vector<std::shared_ptr> or something like that. There are lots of things in iPlug2 where WDL containers could be replaced with std equivalents
Now everything is clear.