I was thinking about this question for a while. When I tried to find answers on some websites, I found nothing. So the question is: if we have a vector of classes and we use a destructor of class, will it clear his position in the vector or we need to erase it ourselves?
class MyClass{
...
};
std::vector<MyClass> myClasses(2);
myClasses[0].~MyClass();