mirror of
https://github.com/BlackMATov/flat.hpp.git
synced 2025-12-13 09:45:38 +07:00
operator== speed up
This commit is contained in:
@@ -388,7 +388,7 @@ namespace flat_hpp
|
||||
const flat_map<Key, Value, Compare, Allocator, Container>& r)
|
||||
{
|
||||
return l.size() == r.size()
|
||||
&& std::equal(l.begin(), l.end(), r.begin(), r.end());
|
||||
&& std::equal(l.begin(), l.end(), r.begin());
|
||||
}
|
||||
|
||||
template < typename Key
|
||||
|
||||
@@ -334,7 +334,7 @@ namespace flat_hpp
|
||||
const flat_set<Key, Compare, Allocator, Container>& r)
|
||||
{
|
||||
return l.size() == r.size()
|
||||
&& std::equal(l.begin(), l.end(), r.begin(), r.end());
|
||||
&& std::equal(l.begin(), l.end(), r.begin());
|
||||
}
|
||||
|
||||
template < typename Key
|
||||
|
||||
Reference in New Issue
Block a user