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.
Namespaces | Typedefs | Functions
astronomic.h File Reference
#include "length.h"
#include "mass.h"
Include dependency graph for astronomic.h:

Go to the source code of this file.

Namespaces

 SI
 
 SI::literals
 

Typedefs

template<typename _type >
using SI::astronomic_unit_t = length_t< _type, std::ratio< 149597870691, 1 > >
 
template<typename _type >
using SI::lightyear_t = length_t< _type, std::ratio< 9460730777119564, 1 > >
 
template<typename _type >
using SI::parsec_t = length_t< _type, std::ratio< 30856775814913700, 1 > >
 

Functions

template<char... _digits>
constexpr astronomic_unit_t< int64_t > SI::literals::operator""_AU ()
 
template<char... _digits>
constexpr lightyear_t< int64_t > SI::literals::operator""_ly ()
 
template<char... _digits>
constexpr parsec_t< int64_t > SI::literals::operator""_pc ()
 
constexpr astronomic_unit_t< long double > SI::literals::operator""_AU (long double value)
 
constexpr lightyear_t< long double > SI::literals::operator""_ly (long double value)
 
constexpr parsec_t< long double > SI::literals::operator""_pc (long double value)