TypeSI
Units of 'Système international' Blended for C++
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Functions
si_prefix.hpp File Reference

Prefixes for SI units. More...

Go to the source code of this file.

Classes

class  Si::Internal::GenericPrefix< Ratio, Unit >
 Generic type of unit with prefix. More...
 

Namespaces

namespace  Si::Internal
 Technical namespace for core library logic.
 

Typedefs

template<typename Ratio , typename Unit >
using Si::Prefix = decltype(Internal::applyPrefix< Ratio, Unit >())
 Public interface to apply prefix to unit. More...
 

Functions

template<typename Ratio , typename Unit , typename T = decltype(+std::declval<Unit>())>
GenericPrefix< Ratio, Unit > Si::Internal::applyPrefix ()
 
template<typename Ratio , typename Unit , typename T = decltype(+std::declval<typename Unit::template type<Ratio>>())>
Unit::template type< Ratio > Si::Internal::applyPrefix ()
 

Detailed Description

Prefixes for SI units.

Typedef Documentation

◆ Prefix

template<typename Ratio , typename Unit >
using Si::Prefix = typedef decltype(Internal::applyPrefix<Ratio, Unit>())

Public interface to apply prefix to unit.

Template Parameters
Ratiostd::ratio representing prefix
UnitTemplate class of SI unit