diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2023-08-25 10:10:51 +0200 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2023-08-25 10:10:51 +0200 |
commit | 488653602d0636a1fa5ef6e64cabb9b903dce42a (patch) | |
tree | b5d4bbffdf21017777f4c4d994b7b41a02e8fa5d /c++/distance | |
parent | e3c73b2c8b33b43d53de6d2106b93a4343609e80 (diff) |
Renamed src folder to c++
Diffstat (limited to 'c++/distance')
-rw-r--r-- | c++/distance/meter.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/c++/distance/meter.h b/c++/distance/meter.h new file mode 100644 index 0000000..0d9fb3b --- /dev/null +++ b/c++/distance/meter.h @@ -0,0 +1,20 @@ +#pragma once + +#include "../unit.h" + +#include <string_view> + +namespace kel { +namespace unit_type { +struct meter{ + static constexpr std::string_view name = "meter"; + static constexpr std::string_view short_name = "m"; +}; +} + +template<typename S> +using meter = unit<S,unit_component<unit_type::meter,1>>; + +template<typename S> +using square_meter = unit<S,unit_component<unit_type::meter,2>>; +} |