summaryrefslogtreecommitdiff
path: root/c++/distance
diff options
context:
space:
mode:
Diffstat (limited to 'c++/distance')
-rw-r--r--c++/distance/meter.h20
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>>;
+}