stable vector fix for algorithm. Still no correct Iterator.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user