
There's no need for templates as the code is only used with one type. Changed the code to use std::advance as that might avoid a copy of the iterator.
There's no need for templates as the code is only used with one type. Changed the code to use std::advance as that might avoid a copy of the iterator.