tfel
Loading...
Searching...
No Matches
types.ixx File Reference

This file implements the checkUnitCompatibility function. More...

Classes

struct  tfel::math::internals::CheckUnitCompatibilityImplementation< Unit, NumericType >
struct  tfel::math::internals::CheckUnitCompatibilityImplementation< Unit, MathObjectType >
struct  tfel::math::CheckUnitCompatibility< Unit, T >

Namespaces

namespace  tfel
 the namespace tfel encloses all the TFEL project. This namespace is empty.
namespace  tfel::math
 This namespace contains various classes and functions défining mathematical objects and numerical algorithms.
namespace  tfel::math::internals
 This namespace contains classes, functions, metafunctions and data structures that are used internally in the tfel::math namespace and that are meant to be used by the end user.

Functions

template<unit::UnitConcept Unit, typename T>
requires (ScalarConcept<T> || MathObjectConcept<T>)
constexpr bool tfel::math::checkUnitCompatibility ()
 this function checks if the given type matches the given unit if it built on top of a quantity. If the given type is built on a plain old scalar type, this function always returns true.

Detailed Description

This file implements the checkUnitCompatibility function.

Author
Thomas Helfer
Date
12/11/2024