mirror of https://github.com/bsnes-emu/bsnes.git
19 lines
432 B
C++
19 lines
432 B
C++
|
#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;
|
||
|
for(uint n = 0; n < size(); n++) {
|
||
|
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);
|
||
|
}
|
||
|
|
||
|
}
|