Original Post
I’m looking for a simple boost or stl container or combination of containers that can hold a dynamically allocated array of items. The container needs to hold a raw pointer to the array (for libraries that need raw access), the size of the array and overload [] operator for access by functions that don’t require raw access to the array. These are templates I’ve looked at so far and the limitations I’ve had with them. Std::vector <>, don’t think its possible to get access to the raw array pointer Boost::array<>, not intended for dynamic allocation boost::shared_array<>, no size() function Its simple enough to role my own class to handle this but I’d rather ask and see if there is a right way of doing it. I need the raw pointer for handing the array to opengl functions and the like.