From 37d1c3c3fd01e9a8b953a74c8d8cc424e7504b36 Mon Sep 17 00:00:00 2001 From: lisyarus Date: Thu, 22 Jul 2021 10:49:06 +0300 Subject: [PATCH] Add util::flat_list::data --- libs/util/include/psemek/util/flat_list.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/util/include/psemek/util/flat_list.hpp b/libs/util/include/psemek/util/flat_list.hpp index 655092f2..8a0a4011 100644 --- a/libs/util/include/psemek/util/flat_list.hpp +++ b/libs/util/include/psemek/util/flat_list.hpp @@ -34,6 +34,9 @@ namespace psemek::util std::size_t capacity() const { return capacity_; } bool empty() const { return size_ == 0; } + T * data() { return nodes_.get(); } + T const * data() const { return nodes_.get(); } + void reserve(std::size_t size); void clear();