/third_party/json/tests/src/ |
D | unit-reference_access.cpp | 37 auto& p1 = value.get_ref<test_type&>(); 41 const auto& p2 = value.get_ref<const test_type&>(); 46 CHECK_NOTHROW(value.get_ref<json::object_t&>()); 47 CHECK_THROWS_WITH_AS(value.get_ref<json::array_t&>(), 49 CHECK_THROWS_WITH_AS(value.get_ref<json::string_t&>(), 51 CHECK_THROWS_WITH_AS(value.get_ref<json::boolean_t&>(), 53 CHECK_THROWS_WITH_AS(value.get_ref<json::number_integer_t&>(), 55 CHECK_THROWS_WITH_AS(value.get_ref<json::number_unsigned_t&>(), 57 CHECK_THROWS_WITH_AS(value.get_ref<json::number_float_t&>(), 70 const auto& p2 = value.get_ref<const test_type&>(); [all …]
|
D | unit-constructor1.cpp | 1112 const auto* target_addr = j[0].get_ref<std::string const&>().data(); 1123 const auto* target_addr = j["key"].get_ref<std::string const&>().data(); 1134 const auto* target_addr = j.get_ref<json::object_t&>().begin()->first.data(); 1147 const auto* target_addr = j[0].get_ref<json::array_t const&>().data(); 1157 const auto* target_addr = j["key"].get_ref<json::array_t const&>().data(); 1167 const auto* target_addr = j[0].get_ref<json::array_t const&>().data(); 1177 const auto* target_addr = j["key"].get_ref<json::array_t const&>().data(); 1190 CHECK(&(j[0].get_ref<json::object_t const&>().at("hello")) == source_addr); 1198 CHECK(&(j["key"].get_ref<json::object_t const&>().at("hello")) == source_addr); 1206 CHECK(&(j[0].get_ref<json::object_t const&>().at("hello")) == source_addr); [all …]
|
D | unit-msgpack.cpp | 195 … j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i); 226 … j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i); 260 … j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i); 298 … j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i); 341 … j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i);
|
D | unit-ubjson.cpp | 353 … j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i); 386 … j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i); 419 … j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i); 457 … j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i); 498 … j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i);
|
D | unit-bjdata.cpp | 474 … j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i); 507 … j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i); 540 … j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i); 578 … j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i); 616 … j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i); 659 … j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i); 700 … j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i);
|
D | unit-cbor.cpp | 405 … j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i); 436 … j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i); 469 … j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i); 507 … j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i); 550 … j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i);
|
/third_party/json/docs/mkdocs/docs/api/basic_json/ |
D | get_ref.md | 1 # <small>nlohmann::basic_json::</small>get_ref 5 ReferenceType get_ref(); 8 const ReferenceType get_ref() const; 33 match the stored JSON value type; example: `"incompatible ReferenceType for get_ref, actual type is… 49 The example shows several calls to `get_ref()`. 52 --8<-- "examples/get_ref.cpp" 58 --8<-- "examples/get_ref.output"
|
D | index.md | 181 - [**get_ref**](get_ref.md) - get a reference value
|
/third_party/json/docs/examples/ |
D | get_ref.cpp | 12 auto r1 = value.get_ref<const json::number_integer_t&>(); in main() 13 auto r2 = value.get_ref<json::number_integer_t&>(); in main() 21 auto r3 = value.get_ref<json::number_float_t&>(); in main()
|
D | get_ref.output | 2 [json.exception.type_error.303] incompatible ReferenceType for get_ref, actual type is number
|
/third_party/json/include/nlohmann/detail/ |
D | hash.hpp | 81 const auto h = std::hash<string_t> {}(j.template get_ref<const string_t&>()); in hash()
|
/third_party/rust/crates/termcolor/src/ |
D | lib.rs | 539 let locked = match *stream.wtr.get_ref() { in from_stream() 552 let locked = match *stream.wtr.get_ref() { in from_stream() 1027 let mut stream = self.stream.wrap(self.stream.get_ref().lock()); in print() 1265 pub fn get_ref(&self) -> &W { in get_ref() method 1326 pub fn get_ref(&self) -> &W { in get_ref() method 2118 fn get_ref(&self) -> &W { in get_ref() method
|
/third_party/rust/crates/rust-openssl/openssl/src/ssl/ |
D | mod.rs | 3404 pub fn get_ref(&self) -> &S { in get_ref() method 3405 self.stream.get_ref() in get_ref() 3477 .field("stream", &self.get_ref()) in fmt() 3772 pub fn get_ref(&self) -> &S { in get_ref() method 3775 bio::get_ref(bio) in get_ref() 4001 pub fn get_ref(&self) -> &S { in get_ref() method 4004 bio::get_ref(bio) in get_ref()
|
D | bio.rs | 65 pub unsafe fn get_ref<'a, S: 'a>(bio: *mut BIO) -> &'a S { in get_ref() function
|
/third_party/rust/crates/humantime/src/ |
D | duration.rs | 290 pub fn get_ref(&self) -> &Duration { in get_ref() method
|
D | date.rs | 245 pub fn get_ref(&self) -> &SystemTime { in get_ref() method
|
/third_party/json/include/nlohmann/ |
D | json.hpp | 865 … JSONSerializer<other_string_t>::to_json(*this, val.template get_ref<const other_string_t&>()); in basic_json() 868 … JSONSerializer<other_object_t>::to_json(*this, val.template get_ref<const other_object_t&>()); in basic_json() 871 … JSONSerializer<other_array_t>::to_json(*this, val.template get_ref<const other_array_t&>()); in basic_json() 874 … JSONSerializer<other_binary_t>::to_json(*this, val.template get_ref<const other_binary_t&>()); in basic_json() 1821 ReferenceType get_ref() in get_ref() function in basic_json 1832 ReferenceType get_ref() const in get_ref() function in basic_json 3182 … std::move(key.get_ref<string_t&>()), (init.begin() + 1)->moved_or_copied())); in push_back()
|
/third_party/json/docs/mkdocs/docs/home/ |
D | exceptions.md | 567 To retrieve a reference to a value stored in a `basic_json` object with `get_ref`, the type of the … 572 [json.exception.type_error.303] incompatible ReferenceType for get_ref, actual type is object 575 [json.exception.type_error.303] incompatible ReferenceType for get_ref, actual type is number"
|
D | releases.md | 1190 … to get a **reference** to the stored values via the newly added function `get_ref()`. [#128, #184]
|
/third_party/rust/crates/either/src/ |
D | lib.rs | 266 match *Pin::get_ref(self) { in as_pin_ref()
|
/third_party/rust/crates/rust-openssl/openssl/src/ssl/test/ |
D | mod.rs | 1288 if self.incoming.position() == self.incoming.get_ref().len() as u64 { in stateless()
|
/third_party/json/tests/abi/include/nlohmann/ |
D | json_v3_10_5.hpp | 5137 const auto h = std::hash<string_t> {}(j.template get_ref<const string_t&>()); in hash() 18033 … JSONSerializer<other_string_t>::to_json(*this, val.template get_ref<const other_string_t&>()); in basic_json() 18036 … JSONSerializer<other_object_t>::to_json(*this, val.template get_ref<const other_object_t&>()); in basic_json() 18039 … JSONSerializer<other_array_t>::to_json(*this, val.template get_ref<const other_array_t&>()); in basic_json() 18042 … JSONSerializer<other_binary_t>::to_json(*this, val.template get_ref<const other_binary_t&>()); in basic_json() 18988 ReferenceType get_ref() in get_ref() function in nlohmann::basic_json 18999 ReferenceType get_ref() const in get_ref() function in nlohmann::basic_json 20088 … std::move(key.get_ref<string_t&>()), (init.begin() + 1)->moved_or_copied())); in push_back()
|
/third_party/json/single_include/nlohmann/ |
D | json.hpp | 5991 const auto h = std::hash<string_t> {}(j.template get_ref<const string_t&>()); in hash() 20043 … JSONSerializer<other_string_t>::to_json(*this, val.template get_ref<const other_string_t&>()); in basic_json() 20046 … JSONSerializer<other_object_t>::to_json(*this, val.template get_ref<const other_object_t&>()); in basic_json() 20049 … JSONSerializer<other_array_t>::to_json(*this, val.template get_ref<const other_array_t&>()); in basic_json() 20052 … JSONSerializer<other_binary_t>::to_json(*this, val.template get_ref<const other_binary_t&>()); in basic_json() 20999 ReferenceType get_ref() in get_ref() function in basic_json 21010 ReferenceType get_ref() const in get_ref() function in basic_json 22360 … std::move(key.get_ref<string_t&>()), (init.begin() + 1)->moved_or_copied())); in push_back()
|
/third_party/json/ |
D | README.md | 1424 ….com/dariomt) fixed a subtlety in MSVC type support and implemented the `get_ref()` function to ge…
|