SpECTRE  v2024.04.12
tt::is_complex_of_fundamental< T, typename > Struct Template Reference

Determines if a type T is a std::complex of a fundamental type, is a std::true_type if so, and otherwise is a std::false_type More...

#include <IsComplexOfFundamental.hpp>

Detailed Description

template<typename T, typename = std::bool_constant<true>>
struct tt::is_complex_of_fundamental< T, typename >

Determines if a type T is a std::complex of a fundamental type, is a std::true_type if so, and otherwise is a std::false_type

static_assert(tt::is_complex_of_fundamental_v<std::complex<double>>,
"Failed testing is_complex_of_fundamental");
static_assert(tt::is_complex_of_fundamental_v<std::complex<int>>,
"Failed testing is_complex_of_fundamental");
static_assert(not tt::is_complex_of_fundamental_v<double>,
"Failed testing is_complex_of_fundamental");
static_assert(not tt::is_complex_of_fundamental_v<std::complex<DataVector>>,
"Failed testing is_complex_of_fundamental");
static_assert(not tt::is_complex_of_fundamental_v<DataVector>,
"Failed testing is_complex_of_fundamental");

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