STIR  6.2.0
Namespaces
is_null_ptr.h File Reference

Definition of stir::is_null_ptr functions. More...

#include "stir/shared_ptr.h"
#include <memory>
#include "stir/unique_ptr.h"

Go to the source code of this file.

Namespaces

 stir
 Namespace for the STIR library (and some/most of its applications)
 

Functions

testing of (smart) pointers

A utility function that checks if an ordinary or smart pointer is null with identical syntax for all types.

template<typename T >
bool stir::is_null_ptr (T const *const ptr)
 
template<typename T >
bool stir::is_null_ptr (shared_ptr< T > const &sptr)
 
template<typename T >
bool stir::is_null_ptr (unique_ptr< T > const &aptr)
 
bool stir::is_null_ptr (const std::nullptr_t)
 

Detailed Description

Definition of stir::is_null_ptr functions.

Author
Kris Thielemans