std::map destruction value

Hallo, can map destruct pointer or class when it is value? Or I need to define a destructor separately?

Class token{};

map<blah, vector*>
map<blah, token*>
Destruction of a plain pointer does not deallocate the memory that the pointer points to.

Perhaps std::map<blah,std::unique_ptr<token>>
Topic archived. No new replies allowed.