TerraForge3D  2.3.1
3D Terrain And Landscape Generator

◆ from_json_array_impl() [1/4]

template<typename BasicJsonType , typename ConstructibleArrayType , enable_if_t< std::is_assignable< ConstructibleArrayType &, ConstructibleArrayType >::value, int > = 0>
void nlohmann::detail::from_json_array_impl ( const BasicJsonType &  j,
ConstructibleArrayType &  arr,
priority_tag< 0 >   
)

Definition at line 4102 of file json.hpp.

4104{
4105 using std::end;
4106 ConstructibleArrayType ret;
4107 std::transform(
4108 j.begin(), j.end(), std::inserter(ret, end(ret)),
4109 [](const BasicJsonType & i)
4110 {
4111 // get<BasicJsonType>() returns *this, this won't call a from_json
4112 // method when value_type is BasicJsonType
4113 return i.template get<typename ConstructibleArrayType::value_type>();
4114 });
4115 arr = std::move(ret);
4116}