Remove use of std::iterator and std::result_of std::iterator was deprecated in C++17. std::result_of was removed in C++20. Bug: 333165689 Test: art_standalone_libartbase_tests Change-Id: Id60f82a0368062416663a20d0b8e9a109fdac9cc