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

Function shared_ptr

extern/boost/boost/smart_ptr/shared_ptr.hpp:507–515  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

505
506 template<class Y>
507 explicit shared_ptr( std::auto_ptr<Y> & r ): px(r.get()), pn()
508 {
509 boost::detail::sp_assert_convertible< Y, T >();
510
511 Y * tmp = r.get();
512 pn = boost::detail::shared_count( r );
513
514 boost::detail::sp_deleter_construct( this, tmp );
515 }
516
517#if !defined( BOOST_NO_CXX11_RVALUE_REFERENCES )
518

Callers

nothing calls this directly

Calls 4

shared_countFunction · 0.85
sp_deleter_constructFunction · 0.85
getMethod · 0.45
swapMethod · 0.45

Tested by

no test coverage detected