diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2019-10-09 11:43:17 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2019-10-09 11:43:17 +0200 |
commit | 5ea81f5bc791243ac77e82276a8a5a3faa3e155f (patch) | |
tree | 52473ecb468ec03e0468c00a50309fc3c03b306e /libbutl/small-forward-list.mxx | |
parent | 741aa78d9df685dc7755e7d3cd679ca7a24b8014 (diff) |
Define small_size constant in small containers
Diffstat (limited to 'libbutl/small-forward-list.mxx')
-rw-r--r-- | libbutl/small-forward-list.mxx | 2 |
1 files changed, 2 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>; |