|
dimval 0.2.0
Modern C++23 header-only library of dimensional values (units, measures, ranges)
|
Common concepts, error types, and small utilities used across dimval. More...
#include <cstddef>#include <cstdint>#include <string>#include <string_view>#include <type_traits>

Go to the source code of this file.
Classes | |
| struct | dimval::ParseError |
| Detailed error report from a parse_*_value call. More... | |
| struct | dimval::RangeError |
| Detailed error report from a UnitRangeValue::make / MeasureRangeValue::make call. More... | |
| struct | dimval::RangeInclusion |
| Inclusivity of both range bounds together. More... | |
Concepts | |
| concept | dimval::NumericValue |
| Concept for value types stored inside a UnitValue / MeasureValue. | |
Enumerations | |
| enum class | dimval::ParseErrorCode { Empty , InvalidNumber , UnknownUnit , UnitMismatch , MeasureMismatch , TrailingGarbage } |
| Error codes returned by parse_unit_value / parse_measure_value. More... | |
| enum class | dimval::RangeErrorCode { MaxLessThanMin , EmptyOpenRange } |
| Error codes for range construction. More... | |
| enum class | dimval::Bound : std::uint8_t |
| Inclusivity of a single range bound. | |
| enum class | dimval::RangeCompareResult : std::int8_t |
| Result of comparing two values or ranges. | |
Functions | |
| constexpr std::string_view | dimval::detail::ltrim (std::string_view s) noexcept |
| Return a span between the first matching token and the trailing decimal/sign characters. | |
Common concepts, error types, and small utilities used across dimval.
|
strong |
Error codes returned by parse_unit_value / parse_measure_value.
|
strong |