mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Add typedef to StringMapEntry.
llvm-svn: 60134
This commit is contained in:
parent
869ded12c8
commit
d0f8118dc1
@ -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