Home
last modified time | relevance | path

Searched refs:array_t (Results 1 – 25 of 32) sorted by relevance

12

/third_party/json/docs/mkdocs/docs/api/basic_json/
Darray_t.md1 # <small>nlohmann::basic_json::</small>array_t
4 using array_t = ArrayType<basic_json, AllocatorType<basic_json>>;
27 `array_t` is:
48 `#!cpp array_t*` must be dereferenced.
54 …The following code shows that `array_t` is by default, a typedef to `#!cpp std::vector<nlohmann::j…
57 --8<-- "examples/array_t.cpp"
63 --8<-- "examples/array_t.output"
Dsize.md21 | array | result of function array_t::size() |
29 Constant, as long as [`array_t`](array_t.md) and [`object_t`](object_t.md) satisfy the
Dempty.md21 | array | result of function `array_t::empty()` |
29 Constant, as long as [`array_t`](array_t.md) and [`object_t`](object_t.md) satisfy the
Dmax_size.md22 | array | result of function `array_t::max_size()` |
30 Constant, as long as [`array_t`](array_t.md) and [`object_t`](object_t.md) satisfy the
Dget_ref.md16 : reference type; must be a reference to [`array_t`](array_t.md), [`object_t`](object_t.md),
Dget_ptr.md16 : pointer type; must be a pointer to [`array_t`](array_t.md), [`object_t`](object_t.md), [`string…
Dget.md75 : pointer type; must be a pointer to [`array_t`](array_t.md), [`object_t`](object_t.md), [`string…
Dindex.md26 …SON arrays | [`array_t`](array_t.md) …
128 - [**array_t**](array_t.md) - type for arrays
149 - [**array**](array_t.md) (_static_) - explicitly create an array
Dswap.md11 void swap(array_t& other);
/third_party/json/tests/src/
Dunit-reference_access.cpp47 CHECK_THROWS_WITH_AS(value.get_ref<json::array_t&>(),
77 using test_type = json::array_t;
92 CHECK_NOTHROW(value.get_ref<json::array_t&>());
122 CHECK_THROWS_WITH_AS(value.get_ref<json::array_t&>(),
152 CHECK_THROWS_WITH_AS(value.get_ref<json::array_t&>(),
182 CHECK_THROWS_WITH_AS(value.get_ref<json::array_t&>(),
212 CHECK_THROWS_WITH_AS(value.get_ref<json::array_t&>(),
240 …CHECK_THROWS_WITH_AS(value.get_ref<json::array_t&>(), "[json.exception.type_error.303] incompatibl…
Dunit-pointer_access.cpp36 CHECK(value.get_ptr<json::array_t*>() == nullptr);
65 CHECK(value.get_ptr<const json::array_t*>() == nullptr);
76 using test_type = json::array_t;
94 CHECK(value.get_ptr<json::array_t*>() != nullptr);
105 using test_type = const json::array_t;
123 CHECK(value.get_ptr<const json::array_t*>() != nullptr);
152 CHECK(value.get_ptr<json::array_t*>() == nullptr);
181 CHECK(value.get_ptr<const json::array_t*>() == nullptr);
210 CHECK(value.get_ptr<json::array_t*>() == nullptr);
239 CHECK(value.get_ptr<const json::array_t*>() == nullptr);
[all …]
Dunit-constructor1.cpp210 json::array_t a;
217 json::array_t a {json(1), json(1u), json(2.2), json(false), json("string"), json()};
226 … json::array_t a_reference {json(1), json(1u), json(2.2), json(false), json("string"), json()};
937 json j(json::initializer_list_t {json(json::array_t())});
943 json j {json::array_t()};
1043 … json j(json::initializer_list_t {1, 1u, 42.23, true, nullptr, json::object_t(), json::array_t()});
1049 json j {1, 1u, 42.23, true, nullptr, json::object_t(), json::array_t()};
1144 json::array_t source = {1, 2, 3};
1147 const auto* target_addr = j[0].get_ref<json::array_t const&>().data();
1154 json::array_t source = {1, 2, 3};
[all …]
Dunit-conversions.cpp201 json::array_t a_reference{json(1), json(1u), json(2.2),
207 json::array_t a = j.get<json::array_t>();
273 json(json::value_t::null).get<json::array_t>(),
276 json(json::value_t::object).get<json::array_t>(),
279 json(json::value_t::string).get<json::array_t>(),
282 json(json::value_t::boolean).get<json::array_t>(),
285 json(json::value_t::number_integer).get<json::array_t>(),
288 json(json::value_t::number_unsigned).get<json::array_t>(),
291 json(json::value_t::number_float).get<json::array_t>(),
298 json::array_t a_reference{json(1), json(1u), json(2.2),
[all …]
Dunit-allocator.cpp251 j["test"] = bad_alloc_json::array_t();
Dunit-modifiers.cpp842 json::array_t a = {"foo", "bar", "baz"};
856 json::array_t a = {"foo", "bar", "baz"};
/third_party/json/include/nlohmann/detail/conversions/
Dto_json.hpp155 static void construct(BasicJsonType& j, const typename BasicJsonType::array_t& arr) in construct()
165 static void construct(BasicJsonType& j, typename BasicJsonType::array_t&& arr) in construct()
175 … enable_if_t < !std::is_same<CompatibleArrayType, typename BasicJsonType::array_t>::value,
184 j.m_value.array = j.template create<typename BasicJsonType::array_t>(begin(arr), end(arr)); in construct()
360 inline void to_json(BasicJsonType& j, typename BasicJsonType::array_t&& arr) in to_json()
Dfrom_json.hpp194 inline void from_json_array_impl(const BasicJsonType& j, typename BasicJsonType::array_t& arr, prio… in from_json_array_impl()
196 arr = *j.template get_ptr<const typename BasicJsonType::array_t*>(); in from_json_array_impl()
/third_party/json/include/nlohmann/detail/iterators/
Diter_impl.hpp58 using array_t = typename BasicJsonType::array_t; typedef in detail::iter_impl
64 …<std::bidirectional_iterator_tag, typename std::iterator_traits<typename array_t::iterator>::itera…
114 m_it.array_iterator = typename array_t::iterator(); in iter_impl()
Dinternal_iterator.hpp29 typename BasicJsonType::array_t::iterator array_iterator {};
/third_party/json/docs/examples/
Dswap__array_t.cpp12 json::array_t array = {"Snap", "Crackle", "Pop"}; in main()
Darray_t.cpp9 … std::cout << std::boolalpha << std::is_same<std::vector<json>, json::array_t>::value << std::endl; in main()
Dbasic_json__CompatibleType.cpp64 json::array_t array_value = {"one", "two", 3, 4.5, false}; in main()
/third_party/json/docs/mkdocs/docs/features/types/
Dindex.md38 array_t* array
53 + <u>typedef</u> array_t
94 using array_t = ArrayType<basic_json, AllocatorType<basic_json>>;
161 …ayType* (`std::vector`) and *AllocatorType* (`std::allocator`), the default value for `array_t` is:
180 …_json` type. That is, for any access to array values, a pointer of type `array_t*` must be derefer…
/third_party/json/include/nlohmann/
Djson.hpp341 using array_t = ArrayType<basic_json, AllocatorType<basic_json>>; typedef in basic_json
428 array_t* array;
465 array = create<array_t>(); in json_value()
537 json_value(const array_t& value) : array(create<array_t>(value)) {} in json_value()
540 json_value(array_t&& value) : array(create<array_t>(std::move(value))) {} in json_value()
617 AllocatorType<array_t> alloc; in destroy()
847 using other_array_t = typename BasicJsonType::array_t; in basic_json()
938 m_value.array = create<array_t>(init.begin(), init.end()); in basic_json()
1010 m_value.array = create<array_t>(cnt, val); in basic_json()
1101 m_value.array = create<array_t>(first.m_it.array_iterator, in basic_json()
[all …]
/third_party/json/tests/abi/include/nlohmann/
Djson_v3_10_5.hpp3717 typename BasicJsonType::array_t::value_type>::value ||
3989 void from_json_array_impl(const BasicJsonType& j, typename BasicJsonType::array_t& arr, priority_ta… in from_json_array_impl()
3991 arr = *j.template get_ptr<const typename BasicJsonType::array_t*>(); in from_json_array_impl()
4643 static void construct(BasicJsonType& j, const typename BasicJsonType::array_t& arr) in construct()
4653 static void construct(BasicJsonType& j, typename BasicJsonType::array_t&& arr) in construct()
4663 … enable_if_t < !std::is_same<CompatibleArrayType, typename BasicJsonType::array_t>::value,
4672 j.m_value.array = j.template create<typename BasicJsonType::array_t>(begin(arr), end(arr)); in construct()
4833 void to_json(BasicJsonType& j, typename BasicJsonType::array_t&& arr) in to_json()
11353 typename BasicJsonType::array_t::iterator array_iterator {};
11417 using array_t = typename BasicJsonType::array_t; typedef in nlohmann::detail::iter_impl
[all …]

12