mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-09-02 04:22:43 +02:00
Update to v106r52 release.
byuu says: I stand corrected, I managed to create and even larger diff than ever. This one weighs in at 309KiB `>__>` I'll have to create a changelog later, I'm too tired right now to go through all of that.
This commit is contained in:
18
nall/vector/compare.hpp
Normal file
18
nall/vector/compare.hpp
Normal file
@@ -0,0 +1,18 @@
|
||||
#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);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user