added CompileOptional Allocator variable to const_list

This commit is contained in:
cyborg1811m 2024-01-23 00:13:45 +01:00
parent af5c9b2454
commit 2ec64fb77b
1 changed files with 6 additions and 0 deletions

View File

@ -9,6 +9,7 @@
#include <initializer_list>
#include <iterator>
#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, std::is_same_v<Alloc, statically_allocated>> _alloc;
using alloc_defined = decltype(_alloc)::defined;
public:
constexpr const_list() noexcept = default;
constexpr explicit const_list(size_type count) noexcept;