Phyth v0.1.0
A dimensional safe C++ header-only mechanics and electromagnetics simulation library.
Loading...
Searching...
No Matches
Phyth::is_field< T > Struct Template Reference

Type trait to check if a type is a Field instantiation. More...

#include <Field.hpp>

Inheritance diagram for Phyth::is_field< T >:
Inheritance graph
[legend]
Collaboration diagram for Phyth::is_field< T >:
Collaboration graph
[legend]

Detailed Description

template<typename T>
struct Phyth::is_field< T >

Type trait to check if a type is a Field instantiation.

Example: class MyField : public Field<Quantity<Meter>> {}; static_assert(is_field_v<MyField>); // true static_assert(is_field_v<int>); // false

Definition at line 90 of file Field.hpp.


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