stable vector fix for algorithm. Still no correct Iterator.

This commit is contained in:
Metehan Tuncbilek
2024-10-08 07:20:41 +03:00
parent eb2ca2ff5a
commit 7b40d001ec
4 changed files with 316 additions and 266 deletions

View File

@@ -54,7 +54,7 @@ namespace OpenVulkano
V& Get(const K key) { return FindPair(key).second; }
Pair<K, V>& FindPair(const K key)
Pair<K, V>& FindPair(const K key)
{
size_t low = 0;
size_t high = m_data.size();
@@ -76,7 +76,7 @@ namespace OpenVulkano
high = mid - 1;
}
}
throw std::runtime_error("Key not found.");
}
@@ -106,7 +106,7 @@ namespace OpenVulkano
return -1;
}
bool Contains(const K key) const noexcept
bool Contains(const K key) noexcept
{
size_t low = 0;
size_t high = m_data.size();