PSCF v1.1
isNull.h
1#ifndef UTIL_IS_NULL_H
2#define UTIL_IS_NULL_H
3
4/*
5* Util Package - C++ Utilities for Scientific Computation
6*
7* Copyright 2010 - 2017, The Regents of the University of Minnesota
8* Distributed under the terms of the GNU General Public License.
9*/
10
11namespace Util
12{
13
17 template <typename T>
18 inline bool isNull(T* ptr)
19 { return (ptr == 0); }
20
21}
22#endif
Utility classes for scientific computation.
Definition: accumulators.mod:1
bool isNull(FlexPtr< T > p)
Return true iff the enclosed built-in pointer is null.
Definition: FlexPtr.h:143