Lines Matching defs:com
4 // |_____|_____|_____|_|___| https://github.com/nlohmann/json
30 const auto com = om;
31 om.clear(); // silence a warning by forbidding having "const auto& com = om;"
32 CHECK(com.size() == 3);
40 const auto com = om;
45 CHECK(com.at(std::string("eins")) == std::string("one"));
47 CHECK_THROWS_AS(com.at(std::string("vier")), std::out_of_range);
55 CHECK(com.at(eins) == std::string("one"));
57 CHECK_THROWS_AS(com.at(vier), std::out_of_range);
63 CHECK(com.at("eins") == std::string("one"));
65 CHECK_THROWS_AS(com.at("vier"), std::out_of_range);
73 const auto com = om;
78 CHECK(com[std::string("eins")] == std::string("one"));
90 CHECK(com[eins] == std::string("one"));
99 CHECK(com["eins"] == std::string("one"));
256 const auto com = om;
267 CHECK(com.find("eins") == com.begin());
268 CHECK(com.find(std::string("eins")) == com.begin());
269 CHECK(com.find(eins) == com.begin());
270 CHECK(com.find("vier") == com.end());
271 CHECK(com.find(std::string("vier")) == com.end());
272 CHECK(com.find(vier) == com.end());