fork download
  1. #include <vector>
  2.  
  3. using std::vector;
  4.  
  5. template<class T>
  6. class Vector : vector<T>
  7. {
  8. private:
  9. T elem[50];
  10. int size;
  11. public:
  12. using vector<T>::vector; // inherit constructors***
  13. };
  14.  
  15. int main()
  16. {
  17. Vector <int> V{ 1, 2, 3, 4 };
  18. }
Success #stdin #stdout 0s 3268KB
stdin
Standard input is empty
stdout
Standard output is empty