mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
Make SmallPtrSet iterators real iterators
llvm-svn: 75073
This commit is contained in:
parent
100c0c52f3
commit
71dae1f1ba
@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
#include <iterator>
|
||||||
#include "llvm/Support/DataTypes.h"
|
#include "llvm/Support/DataTypes.h"
|
||||||
#include "llvm/Support/PointerLikeTypeTraits.h"
|
#include "llvm/Support/PointerLikeTypeTraits.h"
|
||||||
|
|
||||||
@ -170,7 +171,14 @@ protected:
|
|||||||
template<typename PtrTy>
|
template<typename PtrTy>
|
||||||
class SmallPtrSetIterator : public SmallPtrSetIteratorImpl {
|
class SmallPtrSetIterator : public SmallPtrSetIteratorImpl {
|
||||||
typedef PointerLikeTypeTraits<PtrTy> PtrTraits;
|
typedef PointerLikeTypeTraits<PtrTy> PtrTraits;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
typedef PtrTy value_type;
|
||||||
|
typedef PtrTy reference;
|
||||||
|
typedef PtrTy pointer;
|
||||||
|
typedef std::ptrdiff_t difference_type;
|
||||||
|
typedef std::forward_iterator_tag iterator_category;
|
||||||
|
|
||||||
explicit SmallPtrSetIterator(const void *const *BP)
|
explicit SmallPtrSetIterator(const void *const *BP)
|
||||||
: SmallPtrSetIteratorImpl(BP) {}
|
: SmallPtrSetIteratorImpl(BP) {}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user