I saw some examples of using allocator as a class member in a template class. Such like:
template <class T, class Alloc = std::allocator<T>> class myVector { public: ... protected: std::allocator<value_type> _alloc; ... private: ... }; But the code still works when I delete the default-value template argument like template <class T> class myVector. So do we need to add a default-value template argument when we have a allocator as class member? If the answer is yes, why?
Allocargument, so deleting it doesn't change anything.