OSDN Git Service

[SmallSet] Add SmallSetIterator.
authorFlorian Hahn <florian.hahn@arm.com>
Sat, 16 Jun 2018 12:36:19 +0000 (12:36 +0000)
committerFlorian Hahn <florian.hahn@arm.com>
Sat, 16 Jun 2018 12:36:19 +0000 (12:36 +0000)
commit348096519ed33d31af09e60cccf759ac2c4de186
tree9831b43a576c328821058c3928a7e017f38d152b
parentec4b3c5670b15527ae9e68cd987735a3851979bf
[SmallSet] Add SmallSetIterator.

This patch adds a simple const_iterator implementation for SmallSet by
delegating to either a SmallVector::const_iterator or
std::set::const_iterator, depending on which storage is used by the
SmallSet.

Reviewers: dblaikie, craig.topper

Reviewed By: dblaikie

Differential Revision: https://reviews.llvm.org/D47942

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