I have a problem about std::vector as member of class, I'm not clearly about the initialization mechanism
#include <iostream>
#include <vector>
using namespace std;
class Obj; //this is a Class object
class Grid
{
public:
Grid( ) { }
~Grid( ){ }
protected:
private:
vector<Obj> v1; //initialization mechanism ? and specific requirement about Obj?
vector<int> v2; //does it need to be initialized in constructor function?
//more difficult case
vector<Obj*> v3;
};