ROOT
Version v6.32
master
v6.34
Reference Guide
▼
ROOT
ROOT Reference Documentation
Tutorials
►
Functional Parts
►
Namespaces
►
All Classes
▼
Files
▼
File List
►
bindings
▼
core
►
base
▼
clingutils
▼
inc
►
root_std_complex.h
►
res
►
src
►
cont
►
dictgen
►
foundation
►
gui
►
imt
►
macosx
►
meta
►
metacling
►
multiproc
►
rint
►
testsupport
►
thread
►
unix
►
winnt
►
zip
►
documentation
►
geom
►
graf2d
►
graf3d
►
gui
►
hist
►
html
►
io
►
main
►
math
►
montecarlo
►
net
►
proof
►
roofit
►
sql
►
tmva
►
tree
►
tutorials
►
v6-32-00-patches
►
File Members
Release Notes
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
root_std_complex.h
Go to the documentation of this file.
1
/*************************************************************************
2
* This file defines a complex class which has an layout identical to the one
3
* of ROOT5. The file was located in cint/lib/prec_stl/complex
4
* This class is used to provide to the ROOT6 typesystem a backward compatible
5
* and platform independent information for the complex numbers.
6
*
7
************************************************************************/
8
9
10
#ifndef _ROOT_STD_COMPLEX_INCLUDED
11
#define _ROOT_STD_COMPLEX_INCLUDED
12
13
#include <complex>
14
15
template
<
class
T>
class
_root_std_complex
{
16
T
_real
;
17
T
_imag
;
18
};
19
20
// Asserts about the size of the complex
21
static_assert
(
sizeof
(
_root_std_complex<double>
) ==
sizeof
(std::complex<double>),
22
"The size of complex<T> and _root_std_complex<T> do not match!"
);
23
static_assert
(
sizeof
(
_root_std_complex<float>
) ==
sizeof
(std::complex<float>),
24
"The size of complex<T> and _root_std_complex<T> do not match!"
);
25
static_assert
(
sizeof
(
_root_std_complex<long>
) ==
sizeof
(std::complex<long>),
26
"The size of complex<T> and _root_std_complex<T> do not match!"
);
27
static_assert
(
sizeof
(
_root_std_complex<int>
) ==
sizeof
(std::complex<int>),
28
"The size of complex<T> and _root_std_complex<T> do not match!"
);
29
30
#endif
ROOT::Detail::TRangeCast
Definition
TCollection.h:311
_root_std_complex
Definition
root_std_complex.h:15
_root_std_complex::_imag
T _imag
Definition
root_std_complex.h:17
_root_std_complex::_real
T _real
Definition
root_std_complex.h:16
core
clingutils
inc
root_std_complex.h
ROOT v6-32 - Reference Guide Generated on Wed Mar 26 2025 04:42:40 (GVA Time) using Doxygen 1.10.0