mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
Add typedef to StringMapEntry.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60134 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7e6d70a425
commit
9f1f00ab1b
@ -420,16 +420,18 @@ class StringMapConstIterator {
|
||||
protected:
|
||||
StringMapImpl::ItemBucket *Ptr;
|
||||
public:
|
||||
typedef StringMapEntry<ValueTy> value_type;
|
||||
|
||||
explicit StringMapConstIterator(StringMapImpl::ItemBucket *Bucket,
|
||||
bool NoAdvance = false)
|
||||
: Ptr(Bucket) {
|
||||
if (!NoAdvance) AdvancePastEmptyBuckets();
|
||||
}
|
||||
|
||||
const StringMapEntry<ValueTy> &operator*() const {
|
||||
const value_type &operator*() const {
|
||||
return *static_cast<StringMapEntry<ValueTy>*>(Ptr->Item);
|
||||
}
|
||||
const StringMapEntry<ValueTy> *operator->() const {
|
||||
const value_type *operator->() const {
|
||||
return static_cast<StringMapEntry<ValueTy>*>(Ptr->Item);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user