From 488653602d0636a1fa5ef6e64cabb9b903dce42a Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Fri, 25 Aug 2023 10:10:51 +0200 Subject: Renamed src folder to c++ --- src/unit.h | 49 ------------------------------------------------- 1 file changed, 49 deletions(-) delete mode 100644 src/unit.h (limited to 'src/unit.h') diff --git a/src/unit.h b/src/unit.h deleted file mode 100644 index a8e8320..0000000 --- a/src/unit.h +++ /dev/null @@ -1,49 +0,0 @@ -#pragma once - -#include "unit_reduction.h" - -namespace kel { -template -struct unit_component {}; - -template -class unit; - -template -class unit...> { -public: - using value_type = StorageT; - - unit() = default; - - unit(const unit...>&) = default; - unit(unit...>&&) = default; - - unit...>& operator=(const unit...>&) = default; - unit...>& operator=(unit...>&&) = default; - - unit(const value_type&); - unit(value_type&&); - - unit...>& operator=(const value_type&); - unit...>& operator=(value_type&&); - - unit...> operator+(const unit...>& rhs); - unit...> operator-(const unit...>& rhs); - - template - typename unit_multiplication...>, unit>::type operator*(const unit& rhs); - - template - typename unit_multiplication...>, typename unit_invert::type>::type operator/(const unit& rhs); - - value_type data() const; -private: - value_type value; -}; - -template -using scalar = unit; -} - -#include "unit.tmpl.h" -- cgit v1.2.3