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;