From 8de62be97faf13e982f8fcec9e87721c3ffeaecc Mon Sep 17 00:00:00 2001 From: hyzboy Date: Sun, 5 Jan 2025 01:33:50 +0800 Subject: [PATCH] standalone KeyValue.h --- inc/hgl/type/KeyValue.h | 10 ++++++++++ inc/hgl/type/Map.h | 8 ++------ 2 files changed, 12 insertions(+), 6 deletions(-) create mode 100644 inc/hgl/type/KeyValue.h diff --git a/inc/hgl/type/KeyValue.h b/inc/hgl/type/KeyValue.h new file mode 100644 index 0000000..54e24d4 --- /dev/null +++ b/inc/hgl/type/KeyValue.h @@ -0,0 +1,10 @@ +#pragma once + +namespace hgl +{ + template struct KeyValue + { + K key; + V value; + }; +}//namespace hgl diff --git a/inc/hgl/type/Map.h b/inc/hgl/type/Map.h index 8a3b826..357b75b 100644 --- a/inc/hgl/type/Map.h +++ b/inc/hgl/type/Map.h @@ -1,17 +1,13 @@ #pragma once +#include #include #include #include #include + namespace hgl { - template struct KeyValue - { - K key; - V value; - }; - /** * 索引数据模板 */