10 #ifndef TEUCHOS_RCP_BOOST_SHAREDPTR_CONVERSIONS_DECL_HPP
11 #define TEUCHOS_RCP_BOOST_SHAREDPTR_CONVERSIONS_DECL_HPP
14 #include "boost/shared_ptr.hpp"
50 const boost::shared_ptr<T>&
ptr()
const {
return sptr_; }
52 mutable boost::shared_ptr<T>
sptr_;
93 RCP<T> rcp(
const boost::shared_ptr<T> &sptr );
108 boost::shared_ptr<T> shared_pointer(
const RCP<T> &
rcp );
121 template<
class T>
inline
132 template<
class T>
inline
142 #endif // TEUCHOS_RCP_BOOST_SHAREDPTR_CONVERSIONS_DECL_HPP
bool is_null(const boost::shared_ptr< T > &p)
Returns true if p.get()==NULL.
boost::shared_ptr< T > sptr_
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