[libc++] Fix test synopses and remove unused includes.
authorMarek Kurdej <marek.kurdej+llvm.org@gmail.com>
Tue, 13 Apr 2021 08:32:16 +0000 (10:32 +0200)
committerMarek Kurdej <marek.kurdej+llvm.org@gmail.com>
Tue, 13 Apr 2021 08:32:35 +0000 (10:32 +0200)
24 files changed:
libcxx/test/std/containers/associative/map/map.ops/count0.pass.cpp
libcxx/test/std/containers/associative/map/map.ops/count1.compile.fail.cpp
libcxx/test/std/containers/associative/map/map.ops/count2.compile.fail.cpp
libcxx/test/std/containers/associative/map/map.ops/count3.compile.fail.cpp
libcxx/test/std/containers/associative/map/map.ops/count_transparent.pass.cpp
libcxx/test/std/containers/associative/map/map.ops/equal_range0.pass.cpp
libcxx/test/std/containers/associative/map/map.ops/equal_range1.compile.fail.cpp
libcxx/test/std/containers/associative/map/map.ops/equal_range2.compile.fail.cpp
libcxx/test/std/containers/associative/map/map.ops/equal_range3.compile.fail.cpp
libcxx/test/std/containers/associative/map/map.ops/equal_range_transparent.pass.cpp
libcxx/test/std/containers/associative/multimap/multimap.ops/count0.pass.cpp
libcxx/test/std/containers/associative/multimap/multimap.ops/count1.compile.fail.cpp
libcxx/test/std/containers/associative/multimap/multimap.ops/count2.compile.fail.cpp
libcxx/test/std/containers/associative/multimap/multimap.ops/count3.compile.fail.cpp
libcxx/test/std/containers/associative/multimap/multimap.ops/count_transparent.pass.cpp
libcxx/test/std/containers/associative/multimap/multimap.ops/equal_range0.pass.cpp
libcxx/test/std/containers/associative/multimap/multimap.ops/equal_range1.compile.fail.cpp
libcxx/test/std/containers/associative/multimap/multimap.ops/equal_range2.compile.fail.cpp
libcxx/test/std/containers/associative/multimap/multimap.ops/equal_range3.compile.fail.cpp
libcxx/test/std/containers/associative/multimap/multimap.ops/equal_range_transparent.pass.cpp
libcxx/test/std/containers/associative/multiset/count_transparent.pass.cpp
libcxx/test/std/containers/associative/multiset/equal_range_transparent.pass.cpp
libcxx/test/std/containers/associative/set/count_transparent.pass.cpp
libcxx/test/std/containers/associative/set/equal_range_transparent.pass.cpp

index 797100f..aa99523 100644 (file)
@@ -12,8 +12,7 @@
 
 // class map
 
-//       iterator find(const key_type& k);
-// const_iterator find(const key_type& k) const;
+// size_type count(const key_type& k) const;
 //
 //   The member function templates find, count, lower_bound, upper_bound, and
 // equal_range shall not participate in overload resolution unless the
index 42dc59c..f2cfaf7 100644 (file)
@@ -10,8 +10,7 @@
 
 // class map
 
-//       iterator find(const key_type& k);
-// const_iterator find(const key_type& k) const;
+// size_type count(const key_type& k) const;
 //
 //   The member function templates find, count, lower_bound, upper_bound, and
 // equal_range shall not participate in overload resolution unless the
index 1fe6b92..228a582 100644 (file)
@@ -10,8 +10,7 @@
 
 // class map
 
-//       iterator find(const key_type& k);
-// const_iterator find(const key_type& k) const;
+// size_type count(const key_type& k) const;
 //
 //   The member function templates find, count, lower_bound, upper_bound, and
 // equal_range shall not participate in overload resolution unless the
index 3fd930e..dd1be0c 100644 (file)
@@ -10,8 +10,7 @@
 
 // class map
 
-//       iterator find(const key_type& k);
-// const_iterator find(const key_type& k) const;
+// size_type count(const key_type& k) const;
 //
 //   The member function templates find, count, lower_bound, upper_bound, and
 // equal_range shall not participate in overload resolution unless the
index c3c5d27..89686c8 100644 (file)
 #include <map>
 #include <utility>
 
-#include "min_allocator.h"
-#include "private_constructor.h"
-#include "test_macros.h"
-
 struct Comp {
   using is_transparent = void;
 
index d1f51fd..6beb9b2 100644 (file)
@@ -12,8 +12,8 @@
 
 // class map
 
-//       iterator find(const key_type& k);
-// const_iterator find(const key_type& k) const;
+// pair<iterator,iterator>             equal_range(const key_type& k);
+// pair<const_iterator,const_iterator> equal_range(const key_type& k) const;
 //
 //   The member function templates find, count, lower_bound, upper_bound, and
 // equal_range shall not participate in overload resolution unless the
index f8ccfc3..ef5206c 100644 (file)
@@ -10,8 +10,8 @@
 
 // class map
 
-//       iterator find(const key_type& k);
-// const_iterator find(const key_type& k) const;
+// pair<iterator,iterator>             equal_range(const key_type& k);
+// pair<const_iterator,const_iterator> equal_range(const key_type& k) const;
 //
 //   The member function templates find, count, lower_bound, upper_bound, and
 // equal_range shall not participate in overload resolution unless the
index dcde9fc..6e3190e 100644 (file)
@@ -10,8 +10,8 @@
 
 // class map
 
-//       iterator find(const key_type& k);
-// const_iterator find(const key_type& k) const;
+// pair<iterator,iterator>             equal_range(const key_type& k);
+// pair<const_iterator,const_iterator> equal_range(const key_type& k) const;
 //
 //   The member function templates find, count, lower_bound, upper_bound, and
 // equal_range shall not participate in overload resolution unless the
index f773c48..3ce4f3d 100644 (file)
@@ -10,8 +10,8 @@
 
 // class map
 
-//       iterator find(const key_type& k);
-// const_iterator find(const key_type& k) const;
+// pair<iterator,iterator>             equal_range(const key_type& k);
+// pair<const_iterator,const_iterator> equal_range(const key_type& k) const;
 //
 //   The member function templates find, count, lower_bound, upper_bound, and
 // equal_range shall not participate in overload resolution unless the
index ba600db..10330a1 100644 (file)
 #include <map>
 #include <utility>
 
-#include "min_allocator.h"
-#include "private_constructor.h"
-#include "test_macros.h"
-
 struct Comp {
   using is_transparent = void;
 
index fd802ac..bb220d5 100644 (file)
@@ -12,8 +12,7 @@
 
 // class multimap
 
-//       iterator find(const key_type& k);
-// const_iterator find(const key_type& k) const;
+// size_type count(const key_type& k) const;
 //
 //   The member function templates find, count, lower_bound, upper_bound, and
 // equal_range shall not participate in overload resolution unless the
index 594a424..4ee0694 100644 (file)
@@ -10,8 +10,7 @@
 
 // class multimap
 
-//       iterator find(const key_type& k);
-// const_iterator find(const key_type& k) const;
+// size_type count(const key_type& k) const;
 //
 //   The member function templates find, count, lower_bound, upper_bound, and
 // equal_range shall not participate in overload resolution unless the
index 1f98052..83e2d35 100644 (file)
@@ -10,8 +10,7 @@
 
 // class multimap
 
-//       iterator find(const key_type& k);
-// const_iterator find(const key_type& k) const;
+// size_type count(const key_type& k) const;
 //
 //   The member function templates find, count, lower_bound, upper_bound, and
 // equal_range shall not participate in overload resolution unless the
index 3304d9f..09cbb4c 100644 (file)
@@ -10,8 +10,7 @@
 
 // class multimap
 
-//       iterator find(const key_type& k);
-// const_iterator find(const key_type& k) const;
+// size_type count(const key_type& k) const;
 //
 //   The member function templates find, count, lower_bound, upper_bound, and
 // equal_range shall not participate in overload resolution unless the
index ba9d1e2..4bb08c6 100644 (file)
 #include <map>
 #include <utility>
 
-#include "min_allocator.h"
-#include "private_constructor.h"
-#include "test_macros.h"
-
 struct Comp {
   using is_transparent = void;
 
index 38b8e63..470ac4a 100644 (file)
@@ -12,8 +12,8 @@
 
 // class multimap
 
-//       iterator find(const key_type& k);
-// const_iterator find(const key_type& k) const;
+// pair<iterator, iterator>             equal_range(const key_type& k);
+// pair<const_iterator, const_iterator> equal_range(const key_type& k) const;
 //
 //   The member function templates find, count, lower_bound, upper_bound, and
 // equal_range shall not participate in overload resolution unless the
index b826f01..d093618 100644 (file)
@@ -10,8 +10,8 @@
 
 // class multimap
 
-//       iterator find(const key_type& k);
-// const_iterator find(const key_type& k) const;
+// pair<iterator, iterator>             equal_range(const key_type& k);
+// pair<const_iterator, const_iterator> equal_range(const key_type& k) const;
 //
 //   The member function templates find, count, lower_bound, upper_bound, and
 // equal_range shall not participate in overload resolution unless the
index a533a71..84958d3 100644 (file)
@@ -10,8 +10,8 @@
 
 // class multimap
 
-//       iterator find(const key_type& k);
-// const_iterator find(const key_type& k) const;
+// pair<iterator, iterator>             equal_range(const key_type& k);
+// pair<const_iterator, const_iterator> equal_range(const key_type& k) const;
 //
 //   The member function templates find, count, lower_bound, upper_bound, and
 // equal_range shall not participate in overload resolution unless the
index 2a26a58..6bf34c2 100644 (file)
@@ -10,8 +10,8 @@
 
 // class multimap
 
-//       iterator find(const key_type& k);
-// const_iterator find(const key_type& k) const;
+// pair<iterator, iterator>             equal_range(const key_type& k);
+// pair<const_iterator, const_iterator> equal_range(const key_type& k) const;
 //
 //   The member function templates find, count, lower_bound, upper_bound, and
 // equal_range shall not participate in overload resolution unless the
index 9b9e58e..5e6add9 100644 (file)
 // class multiset
 
 // template<typename K>
-//     iterator lower_bound(const K& x);              // C++14
-// template<typename K>
-//     const_iterator lower_bound(const K& x) const;  // C++14
+//     size_type count(const K& x) const;        // C++14
 
 #include <cassert>
 #include <set>
 #include <utility>
 
-#include "min_allocator.h"
-#include "private_constructor.h"
-#include "test_macros.h"
-
 struct Comp {
   using is_transparent = void;
 
index c92914a..06b4550 100644 (file)
 #include <set>
 #include <utility>
 
-#include "min_allocator.h"
-#include "private_constructor.h"
-#include "test_macros.h"
-
 struct Comp {
   using is_transparent = void;
 
index 00aea22..3cb7e5f 100644 (file)
 
 // class set
 
-// template<typename K>
-//     iterator lower_bound(const K& x);              // C++14
-// template<typename K>
-//     const_iterator lower_bound(const K& x) const;  // C++14
+//    template<typename K>
+//        size_type count(const K& x) const;        // C++14
 
 #include <cassert>
 #include <set>
 #include <utility>
 
-#include "min_allocator.h"
-#include "private_constructor.h"
-#include "test_macros.h"
-
 struct Comp {
   using is_transparent = void;
 
index 1f4f031..e4b7833 100644 (file)
 #include <set>
 #include <utility>
 
-#include "min_allocator.h"
-#include "private_constructor.h"
-#include "test_macros.h"
-
 struct Comp {
   using is_transparent = void;