MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / contains

Method contains

Libraries/Containers/VectorMap.h:117–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected