#ifndef SECTION5A
#define SECTION5A

class IntArrayList {
public:
  IntArrayList();
  IntArrayList(int capacity);
  IntArrayList(const IntArrayList& rhs);
  IntArrayList(const int* arr, int len);
  ~IntArrayList();

  size_t len();

  IntArrayList& operator=(const IntArrayList& rhs);
  void operator+=(const IntArrayList& other);
  void operator+=(int n);

  int& operator[](int indx);

  friend std::ostream& operator<<(std::ostream& ostr, IntArrayList& rhs);
private:
  int* arr_;
  size_t capacity_;
  size_t len_;







#endif