|
template<class T > |
bool | Teuchos::is_null (const std::shared_ptr< T > &p) |
| Returns true if p.get()==NULL .
|
|
template<class T > |
bool | Teuchos::nonnull (const std::shared_ptr< T > &p) |
| Returns true if p.get()!=NULL .
|
|
The smart pointer classes Teuchos::RCP
and std::shared_ptr
are easily compatible. The two templated conversion functions Teuchos::rcp( const std::shared_ptr<T> & )
and Teuchos::get_shared_ptr( const RCP<T> & )
have been created for converting back and forth (see the related non-member functions rcp()
and get_shared_ptr()
the RCP
classes' documentation).
◆ is_null()
template<class T >
bool Teuchos::is_null |
( |
const std::shared_ptr< T > & |
p | ) |
|
|
inline |
◆ nonnull()
template<class T >
bool Teuchos::nonnull |
( |
const std::shared_ptr< T > & |
p | ) |
|
|
inline |