diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-07-21 20:42:03 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-07-22 19:23:50 (GMT) |
commit | 9644a2d11c06a547c82097028a86bff976f12040 (patch) | |
tree | add32d0ff20863aac909277c2a5b8e7baa67eedd /Source/cmAlgorithms.h | |
parent | 1e77de7411e982c007c884d05039c4f5ffbd8756 (diff) | |
download | CMake-9644a2d11c06a547c82097028a86bff976f12040.zip CMake-9644a2d11c06a547c82097028a86bff976f12040.tar.gz CMake-9644a2d11c06a547c82097028a86bff976f12040.tar.bz2 |
cmAlgorithms: Add cmMakeReverseIterator.
Diffstat (limited to 'Source/cmAlgorithms.h')
-rw-r--r-- | Source/cmAlgorithms.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmAlgorithms.h b/Source/cmAlgorithms.h index e510fcf..bda933b 100644 --- a/Source/cmAlgorithms.h +++ b/Source/cmAlgorithms.h @@ -363,4 +363,10 @@ cmReverseRange(Range const& range) range.rbegin(), range.rend()); } +template <class Iter> +std::reverse_iterator<Iter> cmMakeReverseIterator(Iter it) +{ + return std::reverse_iterator<Iter>(it); +} + #endif |