mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-28 09:31:03 +00:00
give densemap iterators real iterator traits.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81538 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f2f6ce65b7
commit
724f675144
@ -17,10 +17,11 @@
|
|||||||
#include "llvm/Support/PointerLikeTypeTraits.h"
|
#include "llvm/Support/PointerLikeTypeTraits.h"
|
||||||
#include "llvm/Support/MathExtras.h"
|
#include "llvm/Support/MathExtras.h"
|
||||||
#include "llvm/ADT/DenseMapInfo.h"
|
#include "llvm/ADT/DenseMapInfo.h"
|
||||||
|
#include <iterator>
|
||||||
|
#include <new>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <utility>
|
|
||||||
#include <new>
|
|
||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
|
|
||||||
@ -423,7 +424,9 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
template<typename KeyT, typename ValueT, typename KeyInfoT, typename ValueInfoT>
|
template<typename KeyT, typename ValueT, typename KeyInfoT, typename ValueInfoT>
|
||||||
class DenseMapIterator {
|
class DenseMapIterator :
|
||||||
|
public std::iterator<std::forward_iterator_tag, std::pair<KeyT, ValueT>,
|
||||||
|
ptrdiff_t> {
|
||||||
typedef std::pair<KeyT, ValueT> BucketT;
|
typedef std::pair<KeyT, ValueT> BucketT;
|
||||||
protected:
|
protected:
|
||||||
const BucketT *Ptr, *End;
|
const BucketT *Ptr, *End;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user