MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / sp_pointer_construct

Function sp_pointer_construct

extern/boost/boost/smart_ptr/shared_ptr.hpp:277–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

275// pointer constructor helper
276
277template< class T, class Y > inline void sp_pointer_construct( boost::shared_ptr< T > * ppx, Y * p, boost::detail::shared_count & pn )
278{
279 boost::detail::shared_count( p ).swap( pn );
280 boost::detail::sp_enable_shared_from_this( ppx, p, p );
281}
282
283#if !defined( BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION )
284

Callers 1

shared_ptrMethod · 0.85

Calls 3

shared_countFunction · 0.85
swapMethod · 0.45

Tested by

no test coverage detected