units::unit< Rep, Ratio, UnitType > Struct Template Reference

Public Types

using rep = Rep
 
using ratio = Ratio
 
using unit_type = UnitType
 

Public Member Functions

constexpr unit (rep value)
 
template<typename Rep2 , typename Ratio2 , typename UnitType2 >
constexpr unit (unit< Rep2, Ratio2, UnitType2 > dist)
 
constexpr rep count () const
 
constexpr std::common_type_t
< unit > 
operator+ () const
 
constexpr std::common_type_t
< unit > 
operator- () const
 
unit & operator++ ()
 
unit operator++ (int)
 
unit & operator-- ()
 
unit operator-- (int)
 
unit & operator+= (unit const other)
 
unit & operator-= (unit const other)
 
unit & operator*= (rep const scalar)
 
unit & operator/= (rep const scalar)
 
unit & operator%= (rep const scalar)
 
unit & operator%= (unit const other)
 

The documentation for this struct was generated from the following file:
  • /mnt/c/Users/david.brown/Documents/git/github.com/bigdavedev/units/units.h