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_;
121template<
class T>
inline
122bool is_null(
const boost::shared_ptr<T> &
p )
132template<
class T>
inline
133bool nonnull(
const boost::shared_ptr<T> &p )
Reference-counted pointer class and non-member templated function implementations.
Teuchos::RCP Deallocator class that wraps a boost::shared_ptr
void free(T *ptr_in) const
DeallocBoostSharedPtr(const boost::shared_ptr< T > &sptr)
const boost::shared_ptr< T > & ptr() const
boost::shared_ptr deleter class that wraps a Teuchos::RCP.
void operator()(T *x) const
RCPDeleter(const RCP< T > &rcp)
const RCP< T > & ptr() const
Smart reference counting pointer class for automatic garbage collection.
boost::shared_ptr< T > shared_pointer(const RCP< T > &rcp)
Conversion function that takes in a Teuchos::RCP object and spits out a boost::shared_ptr object.
RCP< T > rcp(const boost::shared_ptr< T > &sptr)
Conversion function that takes in a boost::shared_ptr object and spits out a Teuchos::RCP object.
T * get() const
Get the raw C++ pointer to the underlying object.
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.