From 1ca46b9d7bb9621a2f7d02a9ca1eff99e91e3f1a Mon Sep 17 00:00:00 2001 From: Brett Date: Fri, 21 Jun 2024 17:35:19 -0400 Subject: [PATCH] integer type --- CMakeLists.txt | 2 +- include/blt/std/types.h | 19 +++++++++++++++++++ libraries/parallel-hashmap | 2 +- 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5a570a4..8aaf141 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 3.20) include(cmake/color.cmake) -set(BLT_VERSION 0.17.15) +set(BLT_VERSION 0.17.16) set(BLT_TEST_VERSION 0.0.1) set(BLT_TARGET BLT) diff --git a/include/blt/std/types.h b/include/blt/std/types.h index 0416ec0..fa7128d 100644 --- a/include/blt/std/types.h +++ b/include/blt/std/types.h @@ -44,4 +44,23 @@ namespace blt } #endif +namespace blt +{ + template + struct integer_type + { + T id; + + integer_type() = default; + + integer_type(T id): id(id) // NOLINT + {} + + inline operator T() const // NOLINT + { + return id; + } + }; +} + #endif //BLT_TYPES_H diff --git a/libraries/parallel-hashmap b/libraries/parallel-hashmap index 1036816..d88c5e1 160000 --- a/libraries/parallel-hashmap +++ b/libraries/parallel-hashmap @@ -1 +1 @@ -Subproject commit 10368163ab1f4367d2f0685b5928b1c973ebd1ec +Subproject commit d88c5e15079047777b418132ece5879e7c9aaa2b