electro 0.3.0
Type-safe electrical units library modeled after std::chrono
Loading...
Searching...
No Matches
electro::quantity_values< Rep > Struct Template Reference

Provides special values for quantity representations. More...

#include <electro/electro.hpp>

Static Public Member Functions

static constexpr Rep zero () noexcept
 Returns a zero quantity.
 
static constexpr Rep max () noexcept
 Returns the maximum representable quantity.
 
static constexpr Rep min () noexcept
 Returns the minimum representable quantity.
 

Detailed Description

template<typename Rep>
struct electro::quantity_values< Rep >

Provides special values for quantity representations.

Template Parameters
RepThe representation type.

Definition at line 133 of file electro.hpp.

Member Function Documentation

◆ max()

template<typename Rep >
static constexpr Rep electro::quantity_values< Rep >::max ( )
inlinestaticconstexprnoexcept

Returns the maximum representable quantity.

Definition at line 138 of file electro.hpp.

◆ min()

template<typename Rep >
static constexpr Rep electro::quantity_values< Rep >::min ( )
inlinestaticconstexprnoexcept

Returns the minimum representable quantity.

Definition at line 141 of file electro.hpp.

◆ zero()

template<typename Rep >
static constexpr Rep electro::quantity_values< Rep >::zero ( )
inlinestaticconstexprnoexcept

Returns a zero quantity.

Definition at line 135 of file electro.hpp.

References electro::treat_as_inexact_v.


The documentation for this struct was generated from the following file: