Quetzal-CoaTL
The Coalescence Template Library
Loading...
Searching...
No Matches
units.hpp
1
#ifndef PHYSIC_CONSTANTS_HPP
2
#define PHYSIC_CONSTANTS_HPP
3
4
#include <iostream>
5
#include <type_traits>
6
#include <units/base_dimension.h>
7
#include <units/isq/si/prefixes.h>
8
#include <units/quantity.h>
9
#include <units/quantity_io.h>
10
#include <units/unit.h>
11
12
using namespace
units;
13
14
// namespace fps {
15
//
16
// struct foot : named_unit<foot, "ft"> {};
17
// struct yard : named_scaled_unit<yard, "yd", ratio(3), foot> {};
18
//
19
// struct dim_length : base_dimension<"L", foot> {};
20
//
21
// template<UnitOf<dim_length> U, Representation Rep = double>
22
// using length = quantity<dim_length, U, Rep>;
23
//
24
// } // namespace fps
25
29
namespace
quetzal::units
30
{
31
}
32
33
// using namespace units;
34
// ///
35
// /// @brief New kind to represent probability as a more specific usage of a dimensionless quantity
36
// ///
37
// /// @note Quantities of kind generation are now clearly distinct from more generic usages of time quantities.
38
// ///
39
// struct foot : named_unit<foot, "ft"> {};
40
// // struct desk : named_scaled_unit<desk, "desk", ratio(3, 10), square_metre> {};
41
// // struct probability : units::kind<probability, "probability", ratio(1), units::dimensionless> {};
42
//
43
// // User Defined Literals
44
// // constexpr auto operator"" _pr(double p) { return units::kind<probability, double>(p); }
45
// ///
46
// /// @brief New kind to represent the more specific usage of a time quantity
47
// ///
48
// /// @note Quantities of kind generation are now clearly distinct from more generic usages of time quantities.
49
// ///
50
// // struct generation : units::kind<generation, units::isq::si::dim_time> {};
51
//
52
// ///
53
// /// @brief New kind to represent the more specific usage of a time quantity
54
// ///
55
// /// @note Quantities of kind generation are now clearly distinct from more generic usages of time quantities.
56
// ///
57
// // struct coalescence : units::kind<coalescence, units::isq::si::dim_time> {};
58
//
59
// } // end namespace units
60
// } //
61
// }
62
63
#endif
quetzal::units
Compile-time unit quantities for coalescence.
Definition
units.hpp:30
src
include
quetzal
units.hpp
Generated by
1.9.8