mirror of
https://github.com/BlackMATov/flat.hpp.git
synced 2025-12-16 14:09:01 +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)
|
const flat_map<Key, Value, Compare, Allocator, Container>& r)
|
||||||
{
|
{
|
||||||
return l.size() == r.size()
|
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
|
template < typename Key
|
||||||
|
|||||||
@@ -334,7 +334,7 @@ namespace flat_hpp
|
|||||||
const flat_set<Key, Compare, Allocator, Container>& r)
|
const flat_set<Key, Compare, Allocator, Container>& r)
|
||||||
{
|
{
|
||||||
return l.size() == r.size()
|
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
|
template < typename Key
|
||||||
|
|||||||
Reference in New Issue
Block a user