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_;
115template<
class T>
inline
126template<
class T>
inline
Reference-counted pointer class and non-member templated function implementations.
const std::shared_ptr< T > & ptr() const
void free(T *ptr_in) const
DeallocStdSharedPtr(const std::shared_ptr< T > &sptr)
Smart reference counting pointer class for automatic garbage collection.
RCP< T > rcp(const std::shared_ptr< T > &sptr)
Conversion function that takes in a std::shared_ptr object and spits out a Teuchos::RCP object.
std::shared_ptr< T > get_shared_ptr(const RCP< T > &rcp)
Conversion function that takes in a Teuchos::RCP object and spits out a std::shared_ptr object.
RCP< T_impl > rcp(const boost::shared_ptr< T_impl > &sptr)
void operator()(T *x) const
StdSharedPtrRCPDeleter(const RCP< T > &rcp)
const RCP< T > & ptr() const
bool is_null(const std::shared_ptr< T > &p)
Returns true if p.get()==NULL.
bool nonnull(const std::shared_ptr< T > &p)
Returns true if p.get()!=NULL.
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Deprecated.