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

Trait: check if a type is a Unit instantiation. More...

#include <Unit.hpp>

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

Detailed Description

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

Trait: check if a type is a Unit instantiation.

Template Parameters
TThe type to check

Example: static_assert(is_unit_v<Unit<Length>>); // true static_assert(is_unit_v<int>); // false

Definition at line 71 of file Unit.hpp.


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