2018-07-25 12:24:03 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
namespace nall {
|
|
|
|
|
|
|
|
template<typename T> auto vector<T>::operator==(const vector<T>& source) const -> bool {
|
|
|
|
if(this == &source) return true;
|
|
|
|
if(size() != source.size()) return false;
|
2018-12-22 10:28:15 +00:00
|
|
|
for(uint64_t n = 0; n < size(); n++) {
|
2018-07-25 12:24:03 +00:00
|
|
|
if(operator[](n) != source[n]) return false;
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
template<typename T> auto vector<T>::operator!=(const vector<T>& source) const -> bool {
|
|
|
|
return !operator==(source);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|