ivl 679
ivl::types::to_complex< T > Struct Template Reference

to_complex is used to promote real-only types to complex types More...

#include <evolution.hpp>

Inherits type< is_ivl_array< T >, to_type< to_complex< subtype< T >::type >::type, T >, to_type< std::complex< T > > >.


Detailed Description

template<class T>
struct ivl::types::to_complex< T >

to_complex is used to promote real-only types to complex types

This struct promotes any type T to std::complex<T>, in case T is a simple type. If however T is a complex type, it leaves it as it is. It is used to avoid std::complex<std::complex<T> > issues, where in template functions where both complex and real types are used.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations