Std :: vector.clear () exclui (memória livre) em cada element

Considere este código:

#include <vector>

void Example()
{
    std::vector<TCHAR*> list;
    TCHAR* pLine = new TCHAR[20];
    list.push_back(pLine);
    list.clear();    // is delete called here?
    // is delete pLine; necessary?
}

chamada list.clear () é excluída em cada elemento? I.e. tenho que liberar a memória antes / depois list.clear ()?

questionAnswers(6)

yourAnswerToTheQuestion