initialize the smart pointer to nullptr by default

Hello,

I have the declared the vector of shared pointer as a member of the class.
Is it necessary to initialize the pointers to nullptr inside the constructor or they are taken care of by default ?

 
std::vector<std::shared_ptr<Triangle>> triangles_;
smart_ptr will be nullptr by default.
Topic archived. No new replies allowed.