OSDN Git Service

Add llvm::enumerate() range adapter.
authorZachary Turner <zturner@google.com>
Wed, 5 Oct 2016 16:54:09 +0000 (16:54 +0000)
committerZachary Turner <zturner@google.com>
Wed, 5 Oct 2016 16:54:09 +0000 (16:54 +0000)
commit5844b06a17eaecc1f460505539f4d4fa654b3752
tree6f58e9436ed38792eaa0234f449b6d8915169e21
parentb53fb3cabe1c66c2819c5ba54588e80f0365a1a7
Add llvm::enumerate() range adapter.

This allows you to enumerate over a range using a range-based
for while the return type contains the index of the enumeration.

Differential revision: https://reviews.llvm.org/D25124

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@283337 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/STLExtras.h
unittests/ADT/STLExtrasTest.cpp