summaryrefslogtreecommitdiffstats
path: root/Source/cmAlgorithms.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-07-21 20:42:03 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-07-22 19:23:50 (GMT)
commit9644a2d11c06a547c82097028a86bff976f12040 (patch)
treeadd32d0ff20863aac909277c2a5b8e7baa67eedd /Source/cmAlgorithms.h
parent1e77de7411e982c007c884d05039c4f5ffbd8756 (diff)
downloadCMake-9644a2d11c06a547c82097028a86bff976f12040.zip
CMake-9644a2d11c06a547c82097028a86bff976f12040.tar.gz
CMake-9644a2d11c06a547c82097028a86bff976f12040.tar.bz2
cmAlgorithms: Add cmMakeReverseIterator.
Diffstat (limited to 'Source/cmAlgorithms.h')
-rw-r--r--Source/cmAlgorithms.h6
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