42 #ifndef TEUCHOS_RCP_STD_SHAREDPTR_CONVERSIONS_DECL_HPP
43 #define TEUCHOS_RCP_STD_SHAREDPTR_CONVERSIONS_DECL_HPP
80 void free( T* ptr_in )
const { sptr_.reset(); }
82 const std::shared_ptr<T>&
ptr()
const {
return sptr_; }
84 mutable std::shared_ptr<T> sptr_;
125 RCP<T>
rcp(
const std::shared_ptr<T> &sptr );
140 std::shared_ptr<T> get_shared_ptr(
const RCP<T> &
rcp );
147 template<
class T>
inline
158 template<
class T>
inline
169 #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.