Logo ROOT  
Reference Guide
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
15template<class T> class _root_std_complex {
18};
19
20// Asserts about the size of the complex
21static_assert(sizeof(_root_std_complex<double>) == sizeof(std::complex<double>),
22 "The size of complex<T> and _root_std_complex<T> do not match!");
23static_assert(sizeof(_root_std_complex<float>) == sizeof(std::complex<float>),
24 "The size of complex<T> and _root_std_complex<T> do not match!");
25static_assert(sizeof(_root_std_complex<long>) == sizeof(std::complex<long>),
26 "The size of complex<T> and _root_std_complex<T> do not match!");
27static_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
double T(double x)
Definition: ChebyshevPol.h:34