diff options
Diffstat (limited to 'include/llvm/ADT/IndexedMap.h')
-rw-r--r-- | include/llvm/ADT/IndexedMap.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/ADT/IndexedMap.h b/include/llvm/ADT/IndexedMap.h index 7e0fbbb..bc38fdd 100644 --- a/include/llvm/ADT/IndexedMap.h +++ b/include/llvm/ADT/IndexedMap.h @@ -33,7 +33,7 @@ namespace llvm { }; template <typename T, typename ToIndexT = IdentityFunctor> - class IndexMap { + class IndexedMap { typedef typename ToIndexT::argument_type IndexT; typedef std::vector<T> StorageT; StorageT storage_; @@ -41,9 +41,9 @@ namespace llvm { ToIndexT toIndex_; public: - IndexMap() : nullVal_(T()) { } + IndexedMap() : nullVal_(T()) { } - explicit IndexMap(const T& val) : nullVal_(val) { } + explicit IndexedMap(const T& val) : nullVal_(val) { } typename StorageT::reference operator[](IndexT n) { assert(toIndex_(n) < storage_.size() && "index out of bounds!"); |