From 6ec5f905e6aae62a1a7cc87d1837a3d4b6870ee4 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 10 Nov 2022 14:00:20 +0300 Subject: Add limitation note for small_vector --- libbutl/small-vector.hxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libbutl') diff --git a/libbutl/small-vector.hxx b/libbutl/small-vector.hxx index f2d2a80..9e2a357 100644 --- a/libbutl/small-vector.hxx +++ b/libbutl/small-vector.hxx @@ -24,6 +24,9 @@ namespace butl // // - swap() is deleted (see notes below). // + // - In contrast to std::vector, the references, pointers, and iterators + // referring to elements are invalidated after moving from it. + // template class small_vector: private small_allocator_buffer, public std::vector> -- cgit v1.1