added CompileOptional Allocator variable to const_list
This commit is contained in:
parent
af5c9b2454
commit
2ec64fb77b
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue