aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libbutl/small-forward-list.mxx2
-rw-r--r--libbutl/small-list.mxx2
-rw-r--r--libbutl/small-vector.mxx2
3 files changed, 6 insertions, 0 deletions
diff --git a/libbutl/small-forward-list.mxx b/libbutl/small-forward-list.mxx
index 956e1f1..10794aa 100644
--- a/libbutl/small-forward-list.mxx
+++ b/libbutl/small-forward-list.mxx
@@ -66,6 +66,8 @@ LIBBUTL_MODEXPORT namespace butl
static_assert (N == 1, "only small_forward_list or 1 currently supported");
public:
+ static constexpr const std::size_t small_size = N;
+
using buffer_type = small_forward_list_buffer<T, N>;
using allocator_type = small_allocator<T, N, buffer_type>;
using base_type = std::forward_list<T, allocator_type>;
diff --git a/libbutl/small-list.mxx b/libbutl/small-list.mxx
index 40a583d..7e91dc5 100644
--- a/libbutl/small-list.mxx
+++ b/libbutl/small-list.mxx
@@ -68,6 +68,8 @@ LIBBUTL_MODEXPORT namespace butl
static_assert (N == 1, "only small_list or 1 currently supported");
public:
+ static constexpr const std::size_t small_size = N;
+
using buffer_type = small_list_buffer<T, N>;
using allocator_type = small_allocator<T, N, buffer_type>;
using base_type = std::list<T, allocator_type>;
diff --git a/libbutl/small-vector.mxx b/libbutl/small-vector.mxx
index fa9c702..990d344 100644
--- a/libbutl/small-vector.mxx
+++ b/libbutl/small-vector.mxx
@@ -44,6 +44,8 @@ LIBBUTL_MODEXPORT namespace butl
public std::vector<T, small_allocator<T, N>>
{
public:
+ static constexpr const std::size_t small_size = N;
+
using buffer_type = small_allocator_buffer<T, N>;
using allocator_type = small_allocator<T, N>;
using base_type = std::vector<T, allocator_type>;