18 #ifndef itkMapContainer_h
19 #define itkMapContainer_h
44 template <
typename TElementIdentifier,
typename TElement>
47 ,
private std::map<TElementIdentifier, TElement>
67 using MapType = std::map<ElementIdentifier, Element>;
83 template <
typename TInputIterator>
87 template <
typename TInputIterator>
107 const STLContainerType &
113 using STLContainerType::begin;
114 using STLContainerType::cbegin;
115 using STLContainerType::end;
116 using STLContainerType::cend;
117 using STLContainerType::rbegin;
118 using STLContainerType::crbegin;
119 using STLContainerType::rend;
120 using STLContainerType::crend;
122 using STLContainerType::empty;
123 using STLContainerType::size;
124 using STLContainerType::max_size;
126 using STLContainerType::operator[];
128 using STLContainerType::insert;
129 using STLContainerType::erase;
131 using STLContainerType::clear;
133 using STLContainerType::key_comp;
134 using STLContainerType::value_comp;
136 using STLContainerType::find;
137 using STLContainerType::count;
138 using STLContainerType::lower_bound;
139 using STLContainerType::upper_bound;
140 using STLContainerType::equal_range;
142 using STLContainerType::get_allocator;
144 using typename STLContainerType::key_type;
145 using typename STLContainerType::mapped_type;
146 using typename STLContainerType::value_type;
147 using typename STLContainerType::key_compare;
148 using typename STLContainerType::value_compare;
149 using typename STLContainerType::allocator_type;
150 using typename STLContainerType::reference;
151 using typename STLContainerType::const_reference;
152 using typename STLContainerType::iterator;
153 using typename STLContainerType::const_iterator;
154 using typename STLContainerType::size_type;
155 using typename STLContainerType::difference_type;
156 using typename STLContainerType::pointer;
157 using typename STLContainerType::const_pointer;
158 using typename STLContainerType::reverse_iterator;
159 using typename STLContainerType::const_reverse_iterator;
177 using pointer =
typename MapIterator::pointer;
225 return m_Iter == r.
m_Iter;
228 ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(
Iterator);
233 return m_Iter == r.
m_Iter;
242 return m_Iter->first;
249 return m_Iter->second;
267 using pointer =
typename MapConstIterator::pointer;
318 return m_Iter == r.
m_Iter;
321 ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(
Iterator);
326 return m_Iter == r.
m_Iter;
335 return m_Iter->first;
342 return m_Iter->second;
476 #ifndef ITK_MANUAL_INSTANTIATION
477 # include "itkMapContainer.hxx"