From 5ea81f5bc791243ac77e82276a8a5a3faa3e155f Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 9 Oct 2019 11:43:17 +0200 Subject: Define small_size constant in small containers --- libbutl/small-vector.mxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libbutl/small-vector.mxx') 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> { public: + static constexpr const std::size_t small_size = N; + using buffer_type = small_allocator_buffer; using allocator_type = small_allocator; using base_type = std::vector; -- cgit v1.1