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 | Functions
stream.h File Reference
#include "detail/unit.h"
#include "detail/unit_symbol.h"
#include <istream>
#include <ostream>
Include dependency graph for stream.h:

Go to the source code of this file.

Namespaces

 SI
 

Functions

template<char _symbol, typename _exponent , typename _type , typename _ratio >
std::ostream & operator<< (std::ostream &stream, const SI::detail::unit_t< _symbol, _exponent, _type, _ratio > &unit)
 
template<char _symbol, typename _exponent , typename _type , typename _ratio >
std::istream & operator>> (std::istream &stream, SI::detail::unit_t< _symbol, _exponent, _type, _ratio > &obj)
 
template<char _symbol, typename _exponent , typename _type , typename _ratio >
std::string SI::to_string (const SI::detail::unit_t< _symbol, _exponent, _type, _ratio > &value)
 

Function Documentation

◆ operator<<()

template<char _symbol, typename _exponent , typename _type , typename _ratio >
std::ostream& operator<< ( std::ostream &  stream,
const SI::detail::unit_t< _symbol, _exponent, _type, _ratio > &  unit 
)

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

◆ operator>>()

template<char _symbol, typename _exponent , typename _type , typename _ratio >
std::istream& operator>> ( std::istream &  stream,
SI::detail::unit_t< _symbol, _exponent, _type, _ratio > &  obj 
)