diff options
author | Claudius 'keldu' Holeksa <mail@keldu.de> | 2024-07-29 14:18:30 +0200 |
---|---|---|
committer | Claudius 'keldu' Holeksa <mail@keldu.de> | 2024-07-29 14:18:30 +0200 |
commit | 700cde2d499742160deb361f42b7e861ae1db8ed (patch) | |
tree | ba796243a94578f9c2105080fa19040a341c4482 /c++/distance/meter.hpp | |
parent | fb7dd1c9185da30aed8645c084be0722e061a867 (diff) |
Renaming to new standard
Diffstat (limited to 'c++/distance/meter.hpp')
-rw-r--r-- | c++/distance/meter.hpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/c++/distance/meter.hpp b/c++/distance/meter.hpp new file mode 100644 index 0000000..0d9fb3b --- /dev/null +++ b/c++/distance/meter.hpp @@ -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>>; +} |