With STL's vector class I can initialize a vector using a list (or array) of items:
std::vector<int> = { 1, 2, 3 };
Is it possible for me to implement this functionality into my own classes? I am writing my own Vector class for practice implementing data structures and would like to do:
MyVectorClass<int> = { 1, 2, 3 };
std::initializer_list<int>.