Suppose there is some template class that uses a container from the STL library:
#include <array> template <typename T, size_t D> class default_name { std::array<Type, Dim> container; ... } I want to override begin() , end() and other functions associated with the iterators for my class so that they use the iterators of the inner container and, accordingly, its begin() , end() and others functions.
In this case, I need to specify the return value of the member functions of my class.
Actually, the question is how to get or refer to the type of iterators of the inner container?