Lines Matching defs:arr
155 static void construct(BasicJsonType& j, const typename BasicJsonType::array_t& arr)
159 j.m_value = arr;
165 static void construct(BasicJsonType& j, typename BasicJsonType::array_t&& arr)
169 j.m_value = std::move(arr);
177 static void construct(BasicJsonType& j, const CompatibleArrayType& arr)
184 j.m_value.array = j.template create<typename BasicJsonType::array_t>(begin(arr), end(arr));
190 static void construct(BasicJsonType& j, const std::vector<bool>& arr)
195 j.m_value.array->reserve(arr.size());
196 for (const bool x : arr)
206 static void construct(BasicJsonType& j, const std::valarray<T>& arr)
211 j.m_value.array->resize(arr.size());
212 if (arr.size() > 0)
214 std::copy(std::begin(arr), std::end(arr), j.m_value.array->begin());
341 inline void to_json(BasicJsonType& j, const CompatibleArrayType& arr)
343 external_constructor<value_t::array>::construct(j, arr);
354 inline void to_json(BasicJsonType& j, const std::valarray<T>& arr)
356 external_constructor<value_t::array>::construct(j, std::move(arr));
360 inline void to_json(BasicJsonType& j, typename BasicJsonType::array_t&& arr)
362 external_constructor<value_t::array>::construct(j, std::move(arr));
383 inline void to_json(BasicJsonType& j, const T(&arr)[N]) // NOLINT(cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays)
385 external_constructor<value_t::array>::construct(j, arr);