// Method One class ClassName { public: ClassName() : m_vecInts() {} private: std::vector m_vecInts; } // Method Two class ClassName { public: C
It depends. If you want a size 0 vector, then you don't have to do anything. If you wanted, say, a size N vector fill of 42s then use the constructor initializer lists:
ClassName() : m_vecInts(N, 42) {}