[c++17] address std::iterator deprecation warnings

This patch addresses warnings about deprecation of std::iterator [1]
produced by CLANG 15 on macOS Sonoma: there were many of those generated
prior to this patch.  See a blog post [2] referred from the isocpp.org
site [3] for more details.

This patch doesn't contain any functional modifications.

[1] https://en.cppreference.com/w/cpp/iterator/iterator
[2] https://www.fluentcpp.com/2018/05/08/std-iterator-deprecated/
[3] https://isocpp.org/blog/2018/05/stditerator-is-deprecated-why-what-it-was-and-what-to-use-instead-jonathan

Change-Id: Id82af8f860156f3452a1c6522603ffacaa1ad0cd
Reviewed-on: http://gerrit.cloudera.org:8080/21240
Reviewed-by: Mahesh Reddy <mreddy@cloudera.com>
Reviewed-by: Abhishek Chennaka <achennaka@cloudera.com>
Tested-by: Alexey Serbin <alexey@apache.org>
4 files changed