SI  2.5.4
A header only c++ library that provides type safety and user defined literals for handling physical values defined in the International System of Units.
Classes | Namespaces | Macros | Functions
unit.h File Reference
#include "detail.h"
#include "eps_equal.h"
#include "unit_cast.h"
#include <ratio>
#include <type_traits>
Include dependency graph for unit.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  SI::detail::unit_t< _symbol, _exponent, _type, _ratio >
 base template class for holding values of type _type to be multiplied with a ratio _ratio More...
 

Namespaces

 SI
 
 SI::detail
 Namespace containing implementation details for SI.
 

Macros

#define SI_ENABLE_IMPLICIT_RATIO_CONVERSION   true
 

Functions

template<typename _type , char _symbol, typename _exponent , typename _rhs_type , typename _ratio , std::enable_if_t< std::is_integral_v< _type >> * = nullptr>
constexpr auto SI::detail::operator/ (const _type &lhs, const unit_t< _symbol, _exponent, _rhs_type, _ratio > &rhs)
 

Macro Definition Documentation

◆ SI_ENABLE_IMPLICIT_RATIO_CONVERSION

#define SI_ENABLE_IMPLICIT_RATIO_CONVERSION   true

This file is part of "SI" version 2.5.4 A header only c++ library that provides type safety and user defined literals for handling physical values defined in the International System of Units

https://github.com/bernedom/SI

SPDX-License-Identifier: MIT