The wrapper class will have a constructor that will accept any array-like data structures like vector or array and convert store it as a vector variable present in the class.
I have provided my custom collection class below
1 2 3 4 5 6 7 8 9 10 11 12
template <class T, class T1>
class collection
{
private:
std::vector<T> list;
public:
collection(T1 list, int size=-1)
{
for (int i = 0; i < size; i++)
this->list.push_back(list[i]);
}
};