vcl_complex.h

来自「DTMK软件开发包,此为开源软件,是一款很好的医学图像开发资源.」· C头文件 代码 · 共 26 行

H
26
字号
#ifndef vcl_gcc_295_complex_h_
#define vcl_gcc_295_complex_h_

// The GCC 2.95.3 complex does not have the value_type typedef,
// so we inherit and provide the typedef. vcl_complex is automatically
// convertable to and from std::complex, so everything else should
// work transparently. -- Amitha Perera

#include <complex.h>

template<class T>
class vcl_complex : public complex<T>
{
public:
  typedef T value_type;
  vcl_complex(T r = 0, T i = 0) : complex<T>(r,i) { }
  vcl_complex( complex<T> const& o ) : complex<T>(o) { }
};

#define vcl_complex vcl_complex

#define vcl_generic_complex_STD std
#include "../generic/vcl_complex.h"

#endif // vcl_gcc_295_complex_h_

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?