Loading [MathJax]/extensions/tex2jax.js
Cardinal
Toggle main menu visibility
Main Page
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
p
r
s
t
u
v
w
x
y
z
Variables
Enumerations
Enumerator
a
c
d
e
f
h
k
m
n
p
r
s
t
u
v
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
~
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
~
Variables
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
Typedefs
Enumerations
Enumerator
Files
File List
File Members
All
c
f
g
l
m
n
o
r
u
v
Functions
c
f
g
m
r
v
Typedefs
Enumerations
Enumerator
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Loading...
Searching...
No Matches
include
utils
CardinalUtils.h
Go to the documentation of this file.
1
/********************************************************************/
2
/* SOFTWARE COPYRIGHT NOTIFICATION */
3
/* Cardinal */
4
/* */
5
/* (c) 2021 UChicago Argonne, LLC */
6
/* ALL RIGHTS RESERVED */
7
/* */
8
/* Prepared by UChicago Argonne, LLC */
9
/* Under Contract No. DE-AC02-06CH11357 */
10
/* With the U. S. Department of Energy */
11
/* */
12
/* Prepared by Battelle Energy Alliance, LLC */
13
/* Under Contract No. DE-AC07-05ID14517 */
14
/* With the U. S. Department of Energy */
15
/* */
16
/* See LICENSE for full restrictions */
17
/********************************************************************/
18
19
#pragma once
20
21
template
<
typename
T>
22
void
23
freePointer
(T * ptr)
24
{
25
free(ptr);
26
ptr =
nullptr
;
27
};
23
freePointer
(T * ptr) {
…
}
freePointer
void freePointer(T *ptr)
Definition
CardinalUtils.h:23
Generated on Thu Mar 6 2025 10:48:23 for Cardinal by
1.9.8