@@ -89,14 +89,14 @@ int main()
8989 std::cout << std::boolalpha;
9090
9191 auto it1 = um.emplace_hint(um.cend(), "e", 2.718281828);
92- std::cout << '{' << it1->first << ',' << it1->second << "} at " << std::distance(um.cbegin (), it1) << '\n';
92+ std::cout << '{' << it1->first << ',' << it1->second << "} at " << std::distance(um.begin (), it1) << '\n';
9393 auto it2 = um.emplace_hint(um.cbegin(), "pi", 3.14159265);
94- std::cout << '{' << it2->first << ',' << it2->second << "} at " << std::distance(um.cbegin (), it2) << '\n';
94+ std::cout << '{' << it2->first << ',' << it2->second << "} at " << std::distance(um.begin (), it2) << '\n';
9595 auto it3 = um.emplace_hint(um.cbegin(), "pi", 3);
96- std::cout << '{' << it3->first << ',' << it3->second << "} at " << std::distance(um.cbegin (), it3) << '\n';
96+ std::cout << '{' << it3->first << ',' << it3->second << "} at " << std::distance(um.begin (), it3) << '\n';
9797
9898 auto it4 = um.emplace_hint(std::next(um.cbegin(), 1), std::piecewise_construct, std::forward_as_tuple("i"), std::forward_as_tuple(0, 1));
99- std::cout << '{' << it4->first << ',' << it4->second << "} at " << std::distance(um.cbegin (), it4) << '\n';
99+ std::cout << '{' << it4->first << ',' << it4->second << "} at " << std::distance(um.begin (), it4) << '\n';
100100
101101 std::for_each(um.cbegin(), um.cend(), [](const decltype(um)::value_type& v) {
102102 std::cout << '{' << v.first << ',' << v.second << "}, ";
@@ -106,6 +106,7 @@ int main()
106106```
107107* emplace_hint[ color ff0000]
108108* std::complex[ link /reference/complex/complex.md]
109+ * um.begin()[ link begin.md]
109110* um.cbegin()[ link cbegin.md]
110111* um.cend()[ link cend.md]
111112* std::piecewise_construct[ link /reference/utility/piecewise_construct_t.md]
0 commit comments