TerraForge3D  2.3.1
3D Terrain And Landscape Generator

◆ emplace()

template<class Key , class T , class IgnoredLess = std::less<Key>, class Allocator = std::allocator<std::pair<const Key, T>>>
std::pair< iterator, bool > nlohmann::ordered_map< Key, T, IgnoredLess, Allocator >::emplace ( const key_type &  key,
T &&  t 
)
inline

Definition at line 17601 of file json.hpp.

17602 {
17603 for (auto it = this->begin(); it != this->end(); ++it)
17604 {
17605 if (it->first == key)
17606 {
17607 return {it, false};
17608 }
17609 }
17610
17611 Container::emplace_back(key, t);
17612 return {--this->end(), true};
17613 }