about summary refs log tree commit diff
path: root/lang/cpptour/Vector.h
blob: 850850342f09d8b58c5b50823fb4bd82640a38ba (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
class Vector {
public:
  Vector (int s);
  Vector (std::initializer_list<double>);
  ~Vector ();
  double& operator[] (int i);
  int size () noexcept;
  void push_back (double);
private:
  double* elem;
  int sz;
};