291 |
int m_index; |
int m_index; |
292 |
}; |
}; |
293 |
|
|
294 |
static inline void swap(class ArrElemRef& a, class ArrElemRef& b); |
static inline void swap(class ArrElemRef a, class ArrElemRef b); |
295 |
|
|
296 |
class ArrElemRef : protected ArrElemPOD { |
class ArrElemRef : protected ArrElemPOD { |
297 |
public: |
public: |
368 |
m_array->assignIntElement(m_index, value); |
m_array->assignIntElement(m_index, value); |
369 |
} |
} |
370 |
|
|
371 |
friend void swap(class ArrElemRef& a, class ArrElemRef& b); |
friend void swap(class ArrElemRef a, class ArrElemRef b); |
372 |
}; |
}; |
373 |
|
|
374 |
class ArrElemPtr : protected ArrElemPOD { |
class ArrElemPtr : protected ArrElemPOD { |
386 |
} |
} |
387 |
}; |
}; |
388 |
|
|
389 |
static inline void swap(ArrElemRef& a, ArrElemRef& b) { |
static inline void swap(ArrElemRef a, ArrElemRef b) { |
390 |
int valueA = a.getValue(); |
int valueA = a.getValue(); |
391 |
int valueB = b.getValue(); |
int valueB = b.getValue(); |
392 |
a.setValue(valueB); |
a.setValue(valueB); |