| 115 | /// @brief Check if the given key is contained in the map |
| 116 | template <typename ComparableToKey> |
| 117 | [[nodiscard]] bool contains(const ComparableToKey& key) const |
| 118 | { |
| 119 | for (auto& item : items) |
| 120 | { |
| 121 | if (item.key == key) |
| 122 | { |
| 123 | return true; |
| 124 | } |
| 125 | } |
| 126 | return false; |
| 127 | } |
| 128 | |
| 129 | /// @brief Check if the given key is contained in the map |
| 130 | /// @param key The key to search for inside current map |
nothing calls this directly
no outgoing calls
no test coverage detected