[ADT] Provide some helpful static_asserts for using operations of the
authorChandler Carruth <chandlerc@gmail.com>
Wed, 30 Apr 2014 00:49:32 +0000 (00:49 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 30 Apr 2014 00:49:32 +0000 (00:49 +0000)
commit91cc1431cbd80f0ede7b898e3c15798e273a4716
tree4ebce55ec3f2a03a5ba7cfe7eb5cfe414cfaa0d3
parent1ea858937c0a2513b1d042c4baf83fd879beebba
[ADT] Provide some helpful static_asserts for using operations of the
wrong iterator category. These aren't comprehensive, but they have
caught the common cases for me and produce much nicer errors.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207601 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/iterator.h