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

Concept that ensures the type is either arithmetic or a complex type. More...

#include <vector.hpp>

Concept definition

template<typename T>
concept firefly::vector_type = std::is_arithmetic_v<T> || complex_type<T>
Concept that ensures the type is a complex number type.
Definition vector.hpp:97
Concept that ensures the type is either arithmetic or a complex type.
Definition vector.hpp:110

Detailed Description

Concept that ensures the type is either arithmetic or a complex type.

This concept is satisfied if the type T is either an arithmetic type (such as int, float, etc.) or a complex type (i.e., a specialization of std::complex with an arithmetic value type). It is used to ensure that operations work with both real numbers and complex numbers.

Template Parameters
TThe type to check.