This allocator does not allocate or deallocate anything. More...
Static Public Member Functions | |
template<typename T > | |
static T * | allocate_clone (T const &v) |
template<typename T > | |
static void | deallocate_clone (T *) |
This allocator does not allocate or deallocate anything.
It simple gets non-const-qualified pointers for objects, which allow containers to hold elements without having ownership on them.
It is commonly used to create a pointer container that is a view into another existing container.