1
0
forked from fsfw/fsfw

Made tpp file less cluttered and added inline qualifier

This commit is contained in:
2020-10-01 17:44:23 +02:00
parent f172c07876
commit 6776ca86eb
2 changed files with 16 additions and 19 deletions

View File

@ -159,7 +159,13 @@ public:
* @param key Key to search for
* @return Iterator pointing to the first entry of key
*/
Iterator find(key_t key) const;
Iterator find(key_t key) const{
ReturnValue_t result = exists(key);
if (result != HasReturnvaluesIF::RETURN_OK) {
return end();
}
return Iterator(&theMap[findFirstIndex(key)]);
};
/***
* Finds first entry of the given key and returns a