Phyth v0.1.0
A dimensional safe C++ header-only mechanics and electromagnetics simulation library.
Loading...
Searching...
No Matches
Static Public Attributes | List of all members
Phyth::is_dimensionless< UnitT > Struct Template Reference

Trait: check if a quantity's dimension is dimensionless. More...

#include <Dimension.hpp>

Static Public Attributes

static constexpr bool value = std::is_same_v<typename UnitT::DimensionT, Dimensionless>
 

Detailed Description

template<typename UnitT>
struct Phyth::is_dimensionless< UnitT >

Trait: check if a quantity's dimension is dimensionless.

Template Parameters
UnitTA type that has a ::DimensionT member (e.g., Quantity<T, D>)

Definition at line 333 of file Dimension.hpp.

Member Data Documentation

◆ value

template<typename UnitT >
constexpr bool Phyth::is_dimensionless< UnitT >::value = std::is_same_v<typename UnitT::DimensionT, Dimensionless>
staticconstexpr

Definition at line 334 of file Dimension.hpp.


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