10 #ifndef TEUCHOS_RCP_STD_SHAREDPTR_CONVERSIONS_DECL_HPP
11 #define TEUCHOS_RCP_STD_SHAREDPTR_CONVERSIONS_DECL_HPP
48 void free( T* ptr_in )
const { sptr_.reset(); }
50 const std::shared_ptr<T>&
ptr()
const {
return sptr_; }
52 mutable std::shared_ptr<T> sptr_;
93 RCP<T>
rcp(
const std::shared_ptr<T> &sptr );
108 std::shared_ptr<T> get_shared_ptr(
const RCP<T> &
rcp );
115 template<
class T>
inline
126 template<
class T>
inline
137 #endif // TEUCHOS_RCP_STD_SHAREDPTR_CONVERSIONS_DECL_HPP
std::shared_ptr deleter class that wraps a Teuchos::RCP.
DeallocStdSharedPtr(const std::shared_ptr< T > &sptr)
bool nonnull(const std::shared_ptr< T > &p)
Returns true if p.get()!=NULL.
bool is_null(const std::shared_ptr< T > &p)
Returns true if p.get()==NULL.
void operator()(T *x) const
void free(T *ptr_in) const
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Deprecated.
StdSharedPtrRCPDeleter(const RCP< T > &rcp)
const std::shared_ptr< T > & ptr() const
Teuchos::RCP Deallocator class that wraps a std::shared_ptr
const RCP< T > & ptr() const
Reference-counted pointer class and non-member templated function implementations.
Smart reference counting pointer class for automatic garbage collection.