If you're asking how to recreate std::vector with separate memory allocations and object constructions, then you'll do the following:
- Allocate memory with the operator new() or malloc() function.
- Construct individual objects with placement new.
- Destruct objects by calling their destructor.
- Release memory with the operator delete() or free() function.
If you're specifically asking about point 3, then destroying an object is as simple as calling the ~T() member function on it (replace T with the class name, or template type parameter you use). Look here for some example memory management: clicky.