TerraForge3D  2.3.1
3D Terrain And Landscape Generator

◆ from_json() [8/19]

template<typename BasicJsonType , typename T , typename Allocator , enable_if_t< is_getable< BasicJsonType, T >::value, int > = 0>
void nlohmann::detail::from_json ( const BasicJsonType &  j,
std::forward_list< T, Allocator > &  l 
)

Definition at line 4015 of file json.hpp.

4016{
4017 if (JSON_HEDLEY_UNLIKELY(!j.is_array()))
4018 {
4019 JSON_THROW(type_error::create(302, "type must be array, but is " + std::string(j.type_name()), j));
4020 }
4021
4022 l.clear();
4023 std::transform(j.rbegin(), j.rend(),
4024 std::front_inserter(l), [](const BasicJsonType & i)
4025 {
4026 return i.template get<T>();
4027 });
4028}