From 2ec64fb77be69c9bc3c5f990f5b4450b01b46512 Mon Sep 17 00:00:00 2001 From: cyborg1811m Date: Tue, 23 Jan 2024 00:13:45 +0100 Subject: [PATCH] added CompileOptional Allocator variable to const_list --- include/const_list.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/const_list.h b/include/const_list.h index d4824ad..1306694 100644 --- a/include/const_list.h +++ b/include/const_list.h @@ -9,6 +9,7 @@ #include #include #include "allocator.h" +#include "CompileOptional.h" namespace cc { @@ -90,6 +91,11 @@ namespace cc { const_list_node *_start; const_list_node *_end; std::size_t _size; + CompileOptional> _alloc; + + using alloc_defined = decltype(_alloc)::defined; + + public: constexpr const_list() noexcept = default; constexpr explicit const_list(size_type count) noexcept;