Firefly 3.1.0
Standalone library for vector calculations
Loading...
Searching...
No Matches
firefly::common_type< T1, T2 > Struct Template Reference

Customised common_type implementation that handles cases where one or both types may be arithmetic or std::complex. More...

#include <vector.hpp>

Inheritance diagram for firefly::common_type< T1, T2 >:

Detailed Description

template<typename T1, typename T2>
struct firefly::common_type< T1, T2 >

Customised common_type implementation that handles cases where one or both types may be arithmetic or std::complex.

This behaves like std::common_type but adds special handling when either type or both types are std::complex. In such cases, the resulting type will be std::complex of the larger type between the arithmetic type and the value type of the std::complex.

Template Parameters
T1First type
T2Second type

The documentation for this struct was generated from the following file: