20#ifndef __stir_is_null_ptr_H__
21#define __stir_is_null_ptr_H__
36is_null_ptr(T
const*
const ptr)
38#ifdef BOOST_NO_CXX11_NULLPTR
41 return ptr ==
nullptr;
47is_null_ptr(shared_ptr<T>
const& sptr)
49 return is_null_ptr(sptr.get());
54is_null_ptr(unique_ptr<T>
const& aptr)
56 return is_null_ptr(aptr.get());
59#ifndef BOOST_NO_CXX11_NULLPTR
61is_null_ptr(
const std::nullptr_t)
Import of std::shared_ptr, std::dynamic_pointer_cast and std::static_pointer_cast into the stir names...
Import of std::unique_ptr into the stir namespace, together with work-arounds for other compilers.