Unverified Commit b5128b16 authored by Vasil Dimov's avatar Vasil Dimov
Browse files

Fix usage examples' comments for std::multiset

parent 963efb1f
...@@ -283,8 +283,8 @@ json j_uset(c_uset); // only one entry for "one" is used ...@@ -283,8 +283,8 @@ json j_uset(c_uset); // only one entry for "one" is used
// maybe ["two", "three", "four", "one"] // maybe ["two", "three", "four", "one"]
std::multiset<std::string> c_mset {"one", "two", "one", "four"}; std::multiset<std::string> c_mset {"one", "two", "one", "four"};
json j_mset(c_mset); // only one entry for "one" is used json j_mset(c_mset); // both entries for "one" are used
// maybe ["one", "two", "four"] // maybe ["one", "two", "one", "four"]
std::unordered_multiset<std::string> c_umset {"one", "two", "one", "four"}; std::unordered_multiset<std::string> c_umset {"one", "two", "one", "four"};
json j_umset(c_umset); // both entries for "one" are used json j_umset(c_umset); // both entries for "one" are used
......
...@@ -39,7 +39,7 @@ int main() ...@@ -39,7 +39,7 @@ int main()
// create an array from std::multiset // create an array from std::multiset
std::multiset<std::string> c_mset {"one", "two", "one", "four"}; std::multiset<std::string> c_mset {"one", "two", "one", "four"};
json j_mset(c_mset); // only one entry for "one" is used json j_mset(c_mset); // both entries for "one" are used
// create an array from std::unordered_multiset // create an array from std::unordered_multiset
std::unordered_multiset<std::string> c_umset {"one", "two", "one", "four"}; std::unordered_multiset<std::string> c_umset {"one", "two", "one", "four"};
......
...@@ -208,8 +208,8 @@ TEST_CASE("README", "[hide]") ...@@ -208,8 +208,8 @@ TEST_CASE("README", "[hide]")
// maybe ["two", "three", "four", "one"] // maybe ["two", "three", "four", "one"]
std::multiset<std::string> c_mset {"one", "two", "one", "four"}; std::multiset<std::string> c_mset {"one", "two", "one", "four"};
json j_mset(c_mset); // only one entry for "one" is used json j_mset(c_mset); // both entries for "one" are used
// maybe ["one", "two", "four"] // maybe ["one", "two", "one", "four"]
std::unordered_multiset<std::string> c_umset {"one", "two", "one", "four"}; std::unordered_multiset<std::string> c_umset {"one", "two", "one", "four"};
json j_umset(c_umset); // both entries for "one" are used json j_umset(c_umset); // both entries for "one" are used
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment