1234567891011121314151617181920
template<typename T> class A{ private: vector<vector<T>> m_object; public: vector<vector<T>> getObject(){ return m_object; } }; int main(){ typedef boost::tuples<int, int, int> object; vector<vector<object>> my_object; A<object> my_class; my_object = my_class.getObject(); return 0; }
vector<vector<T>>& getObject() { return m_object; }