Lines Matching defs:value

204     bool value = false;
215 j.at("value").get_to(fb.foo.value);
269 explicit for_3204_foo(std::string /*unused*/) {} // NOLINT(performance-unnecessary-value-param)
281 explicit for_3204_bar(std::function<void(for_3204_foo)> /*unused*/) noexcept // NOLINT(performance-unnecessary-value-param)
283 explicit for_3204_bar(std::function<void(json)> /*unused*/) noexcept // NOLINT(performance-unnecessary-value-param)
309 : for_3333(j.value("x", 0), j.value("y", 0))
354 if (event == json::parse_event_t::value && !parsed.is_primitive())
365 case json::parse_event_t::value:
426 using comper_pair = std::pair<std::string, decltype(e1.value())>; // Trying to avoid unneeded copy
427 return comper_pair(e1.key(), e1.value()) < comper_pair(e2.key(), e2.value()); // Using pair comper
436 static_assert(!std::is_constructible<json, std::variant<int, float>>::value, "unexpected value");
519 SECTION("issue #1708 - minimum value of int64_t can be outputted")
578 static_assert(!std::is_constructible<json, std::pair<std::string, NotSerializableData>>::value, "unexpected result");
579 static_assert(!std::is_constructible<json, std::pair<NotSerializableData, std::string>>::value, "unexpected result");
580 static_assert(std::is_constructible<json, std::pair<int, std::string>>::value, "unexpected result");
584 static_assert(!std::is_constructible<json, std::tuple<std::string, NotSerializableData>>::value, "unexpected result");
585 static_assert(!std::is_constructible<json, std::tuple<NotSerializableData, std::string>>::value, "unexpected result");
586 static_assert(std::is_constructible<json, std::tuple<int, std::string>>::value, "unexpected result");
594 CHECK(result.dump() == R"([{"op":"add","path":"/foo/-","value":"3"}])");
613 std::string defval = "default value";
614 auto val = j.value("x", defval);
615 auto val2 = j.value("y", defval);
756 // call to_json with a non-null JSON value
766 // call to_json with a non-null JSON value
777 CHECK(*sax_no_exception::error_string == "[json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - invalid literal; last read: 'x'");
783 static_assert(std::is_copy_assignable<nlohmann::ordered_json>::value, "ordered_json must be copy assignable");
801 CHECK(std::is_same<json::json_pointer::string_t, ordered_json::json_pointer::string_t>::value);
834 j[0]["value"] = true;
870 json j{{ "str", "value"}};
877 CHECK(td.str == "value");
907 for_3204_bar bar_from_foo([](for_3204_foo) noexcept {}); // NOLINT(performance-unnecessary-value-param)
908 for_3204_bar bar_from_json([](json) noexcept {}); // NOLINT(performance-unnecessary-value-param)