MCPcopy Create free account
hub / github.com/LUX-Core/lux / construct_node

Function construct_node

src/config/implementation.hpp:1674–1682  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1672
1673template <typename Alloc, typename U>
1674inline typename boost::unordered::detail::allocator_traits<Alloc>::pointer
1675construct_node(Alloc& alloc, BOOST_FWD_REF(U) x)
1676{
1677 node_constructor<Alloc> a(alloc);
1678 a.create_node();
1679 boost::unordered::detail::func::call_construct(
1680 alloc, a.node_->value_ptr(), boost::forward<U>(x));
1681 return a.release();
1682}
1683
1684// TODO: When possible, it might be better to use std::pair's
1685// constructor for std::piece_construct with std::tuple.

Callers 6

insert_range_impl2Function · 0.85
copy_bucketsFunction · 0.85
move_bucketsFunction · 0.85
insert_rangeMethod · 0.85
copy_bucketsMethod · 0.85
move_bucketsMethod · 0.85

Calls 4

call_constructFunction · 0.85
create_nodeMethod · 0.80
value_ptrMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected