Quantify
An extensible C++ units library
Loading...
Searching...
No Matches
quantity.cppm File Reference
import quantify.core:frac;
import std;
+ Include dependency graph for quantity.cppm:

Go to the source code of this file.

Classes

struct  quantify::quantity< U, T >
 

Namespaces

namespace  quantify
 

Macros

#define R(...)
 Syntax sugar - Apply reduce.
 

Typedefs

template<typename U, typename T>
using quantify::Q = quantity<U, T>
 

Functions

template<QuantityConcept Q, typename T1>
requires (not QuantityConcept<T1>)
Q quantify::operator/ (const T1 &lhs, const Q &rhs)
 
template<QuantityConcept Q, typename T1>
requires (not QuantityConcept<T1>)
Q quantify::operator* (const T1 &lhs, const Q &rhs)
 
template<typename U, typename T>
std::ostream & operator<< (std::ostream &o, const quantify::quantity< U, T > &quantity)
 

Macro Definition Documentation

◆ R

#define R ( ...)
Value:
reduce<__VA_ARGS__>

Syntax sugar - Apply reduce.

Definition at line 19 of file quantity.cppm.

Function Documentation

◆ operator<<()

template<typename U, typename T>
std::ostream & operator<< ( std::ostream & o,
const quantify::quantity< U, T > & quantity )
export

Definition at line 282 of file quantity.cppm.

+ Here is the call graph for this function: