Can Boost Container vector manage memory through non raw pointers?
问题 I have a pointer-like struct that goes in the place of a pointer. The difference with a pointer is that it has extra information that the (also special) allocator can use to deallocate the memory. This pointer-like structure works well for all basic uses. I can allocate and deallocate memory, dereferrence, increment, -> , etc. Now I want to use this pointers to be managed by a STL-like container. Early on, I realized that STL vector basically cannot handle non-raw pointers. T* is too hard