42 #ifndef TEUCHOS_RCP_BOOST_SHAREDPTR_CONVERSIONS_DECL_HPP
43 #define TEUCHOS_RCP_BOOST_SHAREDPTR_CONVERSIONS_DECL_HPP
46 #include "boost/shared_ptr.hpp"
80 void free( T* ptr_in )
const { sptr_.reset(); }
82 const boost::shared_ptr<T>&
ptr()
const {
return sptr_; }
84 mutable boost::shared_ptr<T> sptr_;
125 RCP<T>
rcp(
const boost::shared_ptr<T> &sptr );
140 boost::shared_ptr<T> shared_pointer(
const RCP<T> &
rcp );
153 template<
class T>
inline
164 template<
class T>
inline
174 #endif // TEUCHOS_RCP_BOOST_SHAREDPTR_CONVERSIONS_DECL_HPP
bool is_null(const boost::shared_ptr< T > &p)
Returns true if p.get()==NULL.
void operator()(T *x) const
RCPDeleter(const RCP< T > &rcp)
DeallocBoostSharedPtr(const boost::shared_ptr< T > &sptr)
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Deprecated.
const RCP< T > & ptr() const
const boost::shared_ptr< T > & ptr() const
bool nonnull(const boost::shared_ptr< T > &p)
Returns true if p.get()!=NULL.
Reference-counted pointer class and non-member templated function implementations.
boost::shared_ptr deleter class that wraps a Teuchos::RCP.
Smart reference counting pointer class for automatic garbage collection.
Teuchos::RCP Deallocator class that wraps a boost::shared_ptr
void free(T *ptr_in) const