electro 0.3.0
Type-safe electrical units library modeled after std::chrono
Loading...
Searching...
No Matches
electro::decibel_reference Concept Reference

Concept for decibel reference tags. More...

#include <electro/decibel.hpp>

Concept definition

template<typename Reference>
concept electro::decibel_reference = requires {
typename Reference::unit;
typename Reference::precision;
{ Reference::factor } -> std::convertible_to<int>;
{ Reference::symbol } -> std::convertible_to<const char*>;
} && (Reference::factor == 10 || Reference::factor == 20)
Concept for decibel reference tags.
Definition decibel.hpp:153

Detailed Description

Concept for decibel reference tags.

A reference names a linear unit, the precision at which one count is the 0 dB point, a factor of 10 (power quantity) or 20 (field quantity), and a display symbol.

Definition at line 153 of file decibel.hpp.