@@ -49,31 +49,31 @@ namespace Containers
4949 template <class ...Args>
5050 HandleType emplace_back (Args&&... args) noexcept ;
5151
52- typename reference operator [](HandleType handle) noexcept ;
53- typename const_reference operator [](HandleType handle) const noexcept ;
52+ reference operator [](HandleType handle) noexcept ;
53+ const_reference operator [](HandleType handle) const noexcept ;
5454
5555 void remove (HandleType handle) noexcept ;
5656 void pop_back () noexcept ;
5757
5858
5959
6060 // Required to satisfy the C++ "Container" requirements
61- typename iterator begin () noexcept ;
62- typename const_iterator begin () const noexcept ;
63- typename const_iterator cbegin () const noexcept ;
64- typename iterator end () noexcept ;
65- typename const_iterator end () const noexcept ;
66- typename const_iterator cend () noexcept ;
61+ iterator begin () noexcept ;
62+ const_iterator begin () const noexcept ;
63+ const_iterator cbegin () const noexcept ;
64+ iterator end () noexcept ;
65+ const_iterator end () const noexcept ;
66+ const_iterator cend () noexcept ;
6767
68- typename size_type size () const noexcept ;
69- constexpr typename size_type max_size () const noexcept ;
68+ size_type size () const noexcept ;
69+ constexpr size_type max_size () const noexcept ;
7070
7171
7272
7373 private:
7474
7575 // The indices are stable and act as handles.
76- typename BackingType<HandleType> indices_;
76+ BackingType<HandleType> indices_;
7777 // If we wanted to prevent a user accidently reusing a handle from an object they removed,
7878 // |indices_| could be a tuple of HandleType and generation counter.
7979 // Increment the generation every time an element is removed and compare against it when accessing.
@@ -82,8 +82,8 @@ namespace Containers
8282 // |data_| and |reverse_indices_| are parallel. The nth element in one corresponds to the nth element in the other.
8383 // This means once we have an element's index into |data_|, we can use that same index into |reverse_indices_| to find
8484 // the element in |indices_| that points here.
85- typename BackingType<T> data_;
86- typename BackingType<HandleType> reverse_indices_;
85+ BackingType<T> data_;
86+ BackingType<HandleType> reverse_indices_;
8787
8888 void remove_by_index (size_t index) noexcept ;
8989
0 commit comments