// vector of pointer to T class
std::vector<T*> animais;
// add new T instance object , into the animais vector pointer
animais.pushBack( new T() );
animais.pushBack( new T() );
// show size in bytes , kbytes , megaBytes
std::cout << (animais.size() * sizeof(std::vector<T>))<<"bytes" << std::endl;
std::cout << (animais.size() * sizeof(std::vector<pessoa>))/ 1024 <<"kb" << std::endl;
std::cout << (animais.size() * sizeof(std::vector<pessoa>))/ 1048576 <<"mb" << std::endl;