[C++] Remove std::iterator usage (#4340) (#4341)

* [C++] Remove std::iterator usage (#4340)

Inheriting from std::iterator has never been required, and it's
deprecated in C++17. It can be replaced by directly providing typedefs.

Include <iterator> for std::random_access_iterator_tag.

Note that structs default to public access control.

* [C++] Change whitespace style in typedefs.
This commit is contained in:
Stephan T. Lavavej
2017-06-07 16:26:06 -07:00
committed by Wouter van Oortmerssen
parent da67c0a71f
commit 86b505e412
2 changed files with 9 additions and 7 deletions

View File

@@ -19,6 +19,7 @@
#include <vector>
#include <set>
#include <algorithm>
#include <iterator>
#include <memory>
#ifdef _STLPORT_VERSION