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

Function construct_node_pair

src/config/implementation.hpp:1687–1701  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1685// constructor for std::piece_construct with std::tuple.
1686template <typename Alloc, typename Key>
1687inline typename boost::unordered::detail::allocator_traits<Alloc>::pointer
1688construct_node_pair(Alloc& alloc, BOOST_FWD_REF(Key) k)
1689{
1690 node_constructor<Alloc> a(alloc);
1691 a.create_node();
1692 boost::unordered::detail::func::call_construct(
1693 alloc, boost::unordered::detail::func::const_cast_pointer(
1694 boost::addressof(a.node_->value_ptr()->first)),
1695 boost::forward<Key>(k));
1696 BOOST_TRY
1697 {
1698 boost::unordered::detail::func::call_construct(
1699 alloc, boost::unordered::detail::func::const_cast_pointer(
1700 boost::addressof(a.node_->value_ptr()->second)));
1701 }
1702 BOOST_CATCH(...)
1703 {
1704 boost::unordered::detail::func::call_destroy(

Callers 2

try_emplace_implMethod · 0.85
table_implClass · 0.85

Calls 4

call_constructFunction · 0.85
const_cast_pointerFunction · 0.85
create_nodeMethod · 0.80
value_ptrMethod · 0.45

Tested by

no test coverage detected