diff --git a/absl/container/btree_map.h b/absl/container/btree_map.h index 32a82ef0..131f622f 100644 --- a/absl/container/btree_map.h +++ b/absl/container/btree_map.h @@ -117,8 +117,8 @@ class ABSL_ATTRIBUTE_OWNER btree_map // // * Copy assignment operator // - // absl::btree_map map4; - // map4 = map3; + // absl::btree_map map4; + // map4 = map3; // // * Move constructor // @@ -555,8 +555,8 @@ class ABSL_ATTRIBUTE_OWNER btree_multimap // // * Copy assignment operator // - // absl::btree_multimap map4; - // map4 = map3; + // absl::btree_multimap map4; + // map4 = map3; // // * Move constructor // diff --git a/absl/container/btree_set.h b/absl/container/btree_set.h index 16181de5..44a39cf8 100644 --- a/absl/container/btree_set.h +++ b/absl/container/btree_set.h @@ -119,8 +119,8 @@ class ABSL_ATTRIBUTE_OWNER btree_set // // * Copy assignment operator // - // absl::btree_set set4; - // set4 = set3; + // absl::btree_set set4; + // set4 = set3; // // * Move constructor // @@ -475,8 +475,8 @@ class ABSL_ATTRIBUTE_OWNER btree_multiset // // * Copy assignment operator // - // absl::btree_multiset set4; - // set4 = set3; + // absl::btree_multiset set4; + // set4 = set3; // // * Move constructor // diff --git a/absl/container/flat_hash_map.h b/absl/container/flat_hash_map.h index bc86ced9..5fa50232 100644 --- a/absl/container/flat_hash_map.h +++ b/absl/container/flat_hash_map.h @@ -115,18 +115,18 @@ struct FlatHashMapPolicy; // absl::flat_hash_map ducks = // {{"a", "huey"}, {"b", "dewey"}, {"c", "louie"}}; // -// // Insert a new element into the flat hash map -// ducks.insert({"d", "donald"}); +// // Insert a new element into the flat hash map +// ducks.insert({"d", "donald"}); // -// // Force a rehash of the flat hash map -// ducks.rehash(0); +// // Force a rehash of the flat hash map +// ducks.rehash(0); // -// // Find the element with the key "b" -// std::string search_key = "b"; -// auto result = ducks.find(search_key); -// if (result != ducks.end()) { -// std::cout << "Result: " << result->second << std::endl; -// } +// // Find the element with the key "b" +// std::string search_key = "b"; +// auto result = ducks.find(search_key); +// if (result != ducks.end()) { +// std::cout << "Result: " << result->second << std::endl; +// } template , class Eq = DefaultHashContainerEq, class Allocator = std::allocator>> @@ -158,9 +158,9 @@ class ABSL_ATTRIBUTE_OWNER flat_hash_map // // * Copy assignment operator // - // // Hash functor and Comparator are copied as well - // absl::flat_hash_map map4; - // map4 = map3; + // // Hash functor and Comparator are copied as well + // absl::flat_hash_map map4; + // map4 = map3; // // * Move constructor // diff --git a/absl/container/flat_hash_set.h b/absl/container/flat_hash_set.h index bf63eb59..bc1ceb17 100644 --- a/absl/container/flat_hash_set.h +++ b/absl/container/flat_hash_set.h @@ -114,16 +114,16 @@ struct FlatHashSetPolicy; // absl::flat_hash_set ducks = // {"huey", "dewey", "louie"}; // -// // Insert a new element into the flat hash set -// ducks.insert("donald"); +// // Insert a new element into the flat hash set +// ducks.insert("donald"); // -// // Force a rehash of the flat hash set -// ducks.rehash(0); +// // Force a rehash of the flat hash set +// ducks.rehash(0); // -// // See if "dewey" is present -// if (ducks.contains("dewey")) { -// std::cout << "We found dewey!" << std::endl; -// } +// // See if "dewey" is present +// if (ducks.contains("dewey")) { +// std::cout << "We found dewey!" << std::endl; +// } template , class Eq = DefaultHashContainerEq, class Allocator = std::allocator> @@ -154,9 +154,9 @@ class ABSL_ATTRIBUTE_OWNER flat_hash_set // // * Copy assignment operator // - // // Hash functor and Comparator are copied as well - // absl::flat_hash_set set4; - // set4 = set3; + // // Hash functor and Comparator are copied as well + // absl::flat_hash_set set4; + // set4 = set3; // // * Move constructor // diff --git a/absl/container/node_hash_map.h b/absl/container/node_hash_map.h index 8aed18b2..5f6be95a 100644 --- a/absl/container/node_hash_map.h +++ b/absl/container/node_hash_map.h @@ -110,18 +110,18 @@ class NodeHashMapPolicy; // absl::node_hash_map ducks = // {{"a", "huey"}, {"b", "dewey"}, {"c", "louie"}}; // -// // Insert a new element into the node hash map -// ducks.insert({"d", "donald"}}; +// // Insert a new element into the node hash map +// ducks.insert({"d", "donald"}}; // -// // Force a rehash of the node hash map -// ducks.rehash(0); +// // Force a rehash of the node hash map +// ducks.rehash(0); // -// // Find the element with the key "b" -// std::string search_key = "b"; -// auto result = ducks.find(search_key); -// if (result != ducks.end()) { -// std::cout << "Result: " << result->second << std::endl; -// } +// // Find the element with the key "b" +// std::string search_key = "b"; +// auto result = ducks.find(search_key); +// if (result != ducks.end()) { +// std::cout << "Result: " << result->second << std::endl; +// } template , class Eq = DefaultHashContainerEq, class Alloc = std::allocator>> @@ -153,9 +153,9 @@ class ABSL_ATTRIBUTE_OWNER node_hash_map // // * Copy assignment operator // - // // Hash functor and Comparator are copied as well - // absl::node_hash_map map4; - // map4 = map3; + // // Hash functor and Comparator are copied as well + // absl::node_hash_map map4; + // map4 = map3; // // * Move constructor // diff --git a/absl/container/node_hash_set.h b/absl/container/node_hash_set.h index 6240e2d9..127c6400 100644 --- a/absl/container/node_hash_set.h +++ b/absl/container/node_hash_set.h @@ -108,16 +108,16 @@ struct NodeHashSetPolicy; // absl::node_hash_set ducks = // {"huey", "dewey", "louie"}; // -// // Insert a new element into the node hash set -// ducks.insert("donald"); +// // Insert a new element into the node hash set +// ducks.insert("donald"); // -// // Force a rehash of the node hash set -// ducks.rehash(0); +// // Force a rehash of the node hash set +// ducks.rehash(0); // -// // See if "dewey" is present -// if (ducks.contains("dewey")) { -// std::cout << "We found dewey!" << std::endl; -// } +// // See if "dewey" is present +// if (ducks.contains("dewey")) { +// std::cout << "We found dewey!" << std::endl; +// } template , class Eq = DefaultHashContainerEq, class Alloc = std::allocator> class ABSL_ATTRIBUTE_OWNER node_hash_set @@ -147,9 +147,9 @@ class ABSL_ATTRIBUTE_OWNER node_hash_set // // * Copy assignment operator // - // // Hash functor and Comparator are copied as well - // absl::node_hash_set set4; - // set4 = set3; + // // Hash functor and Comparator are copied as well + // absl::node_hash_set set4; + // set4 = set3; // // * Move constructor //