forked from boostorg/container
* Implemented C++20 contains() for associative containers as specified in P0458R2.
* Fixed serious bug in heterogeneous lookup functions (is_transparent was broken).
This commit is contained in:
1 parent
1ad64316a4
commit
139db663a3
16 files changed
+220
-16
No files matched your search
@@ -495,6 +495,16 @@ bool test_heterogeneous_lookups()
|
||||
if(cmset1.count(find_me) != 2)
|
||||
return false;
|
||||
|
||||
//contains
|
||||
if(!set1.contains(find_me))
|
||||
return false;
|
||||
if(!cset1.contains(find_me))
|
||||
return false;
|
||||
if(!mset1.contains(find_me))
|
||||
return false;
|
||||
if(!cmset1.contains(find_me))
|
||||
return false;
|
||||
|
||||
//lower_bound
|
||||
if(*set1.lower_bound(find_me) != 2)
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user