Firefly 3.1.0
Standalone library for vector calculations
Loading...
Searching...
No Matches
firefly::complex_type Concept Reference

Concept that ensures the type is a complex number type. More...

#include <vector.hpp>

Concept definition

template<typename T>
concept firefly::complex_type = std::is_same_v<std::decay_t<T>, std::complex<typename T::value_type>> &&
std::is_arithmetic_v<typename T::value_type>
Concept that ensures the type is a complex number type.
Definition vector.hpp:97

Detailed Description

Concept that ensures the type is a complex number type.

This concept checks if the type T is a specialization of the std::complex template, and the underlying value type (i.e., T::value_type) must also satisfy the ArithmeticType concept. It ensures that T is a complex number with an arithmetic value type.

Template Parameters
TThe type to check.