@cvi ok, I get it. I had faced this problem before. It is almost imposible to retriver the container type from the iterator type.
BTW, in one of the implementations I use, std:::array<T, ...>::iterator is literally a raw pointer T*.
@cvi ok, I get it. I had faced this problem before. It is almost imposible to retriver the container type from the iterator type.
BTW, in one of the implementations I use, std:::array<T, ...>::iterator is literally a raw pointer T*.
@cvi ok, I get it. I had faced this problem before. It is almost imposible to retriver the container type from the iterator type.
BTW, in one of the implementations I use, std:::array<T, ...>::iterator is literally a raw pointer T*.
@cvi no, this is the way to do it https://stackoverflow.com/a/35988594/225186
Of course, it could be much better to have a static constexpr size member function.