dimval 0.2.0
Modern C++23 header-only library of dimensional values (units, measures, ranges)
Loading...
Searching...
No Matches
dimval::MeasureBase< Self, BaseUnit > Struct Template Reference

CRTP base for measure tags. More...

#include <base.hpp>

Inheritance diagram for dimval::MeasureBase< Self, BaseUnit >:
Collaboration diagram for dimval::MeasureBase< Self, BaseUnit >:

Static Public Attributes

static constexpr std::string_view base_unit_id = BaseUnit::id
 Derived from the unit type — the redundant call-site string is gone.
 

Detailed Description

template<typename Self, typename BaseUnit>
struct dimval::MeasureBase< Self, BaseUnit >

CRTP base for measure tags.

Self must publish at least: id, name BaseUnit is the underlying unit type — its id becomes the measure's base_unit_id, eliminating the duplication of the previous trait form.


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