1
0
forked from fsfw/fsfw

fixed map and array list implemented as non - members

This commit is contained in:
2020-09-29 16:41:14 +02:00
parent 9013ac240f
commit 4f3cfdcaaf
2 changed files with 33 additions and 11 deletions

View File

@ -61,6 +61,16 @@ public:
}
};
friend bool operator==(const typename FixedMap::Iterator& lhs,
const typename FixedMap::Iterator& rhs) {
return (lhs.value == rhs.value);
}
friend bool operator!=(const typename FixedMap::Iterator& lhs,
const typename FixedMap::Iterator& rhs) {
return not (lhs.value == rhs.value);
}
Iterator begin() const {
return Iterator(&theMap[0]);
}