deleted first try

This commit is contained in:
Andrey Kassaev 2024-03-05 17:26:14 +04:00
parent 8fb9887a82
commit 033d75f170
2 changed files with 0 additions and 37 deletions

View File

@ -1 +0,0 @@
#include "IntVector.h"

View File

@ -1,36 +0,0 @@
#pragma once
class IntVector
{
private:
/*size_t curr_idx = 0;
int* intVector = nullptr;*/
public:
/*size_t size() const {
return this->curr_idx;
};
int& operator[](const size_t index) {
if (index >= this->curr_idx)
throw std::invalid_argument("Index must be less than vector's size");
return this->intVector[index];
};
IntVector() = default;
~IntVector() {
delete[] intVector;
};*/
/*IntVector(const IntVector& anotherVector) {
delete[] intVector;
this->curr_idx = anotherVector.size();
intVector = new int[255];
}*/
};