File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -128,14 +128,6 @@ void ZoneList<T>::Iterate(Visitor* visitor) {
128
128
for (int i = 0 ; i < length_; i++) visitor->Apply (&data_[i]);
129
129
}
130
130
131
- template <typename T>
132
- bool ZoneList<T>::Contains(const T& elm) const {
133
- for (int i = 0 ; i < length_; i++) {
134
- if (data_[i] == elm) return true ;
135
- }
136
- return false ;
137
- }
138
-
139
131
template <typename T>
140
132
template <typename CompareFunction>
141
133
void ZoneList<T>::Sort(CompareFunction cmp) {
Original file line number Diff line number Diff line change @@ -251,7 +251,12 @@ class ZoneList final {
251
251
// Drops all but the first 'pos' elements from the list.
252
252
INLINE (void Rewind (int pos));
253
253
254
- inline bool Contains (const T& elm) const ;
254
+ inline bool Contains (const T& elm) const {
255
+ for (int i = 0 ; i < length_; i++) {
256
+ if (data_[i] == elm) return true ;
257
+ }
258
+ return false ;
259
+ }
255
260
256
261
// Iterate through all list entries, starting at index 0.
257
262
template <class Visitor >
You can’t perform that action at this time.
0 commit comments