TerraForge3D
2.3.1
3D Terrain And Landscape Generator
◆
erase()
[2/2]
template<class Key , class T , class IgnoredLess = std::less<Key>, class Allocator = std::allocator<std::pair<const Key, T>>>
iterator
nlohmann::ordered_map
< Key, T, IgnoredLess, Allocator >::erase
(
iterator
pos
)
inline
Definition at line
17672
of file
json.hpp
.
17673
{
17674
auto
it = pos;
17675
17676
// Since we cannot move const Keys, re-construct them in place
17677
for
(
auto
next = it; ++next != this->end(); ++it)
17678
{
17679
it->~value_type();
// Destroy but keep allocation
17680
new
(&*it) value_type{std::move(*next)};
17681
}
17682
17683
Container::pop_back();
17684
return
pos;
17685
}
nlohmann
ordered_map
Generated on Thu Apr 7 2022 14:10:56 for TerraForge3D by
1.9.3