Add range erase, element insert, and range insert methods to
authorChandler Carruth <chandlerc@gmail.com>
Wed, 1 Aug 2012 08:40:48 +0000 (08:40 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 1 Aug 2012 08:40:48 +0000 (08:40 +0000)
commit147d9e05116518461653695a6022f6109f0eb936
tree9ef3b39a476abc17691e7270cd7709a6defa4e46
parent0b1bcbf6b87f19402d8aef1ef9f6e527a07de9d4
Add range erase, element insert, and range insert methods to
TinyPtrVector. With these, it is sufficiently functional for my more
normal / pedestrian uses.

I've not included some r-value reference stuff here because the value
type for a TinyPtrVector is, necessarily, just a pointer.

I've added tests that cover the basic behavior of these routines, but
they aren't as comprehensive as I'd like. In particular, they don't
really test the iterator semantics as thoroughly as they should. Maybe
some brave soul will feel enterprising and flesh them out. ;]

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