aboutsummaryrefslogtreecommitdiff
path: root/libbutl
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2022-11-10 14:00:20 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2022-11-10 14:00:20 +0300
commit6ec5f905e6aae62a1a7cc87d1837a3d4b6870ee4 (patch)
tree05d42785ea641b312a62e7d74b8584f7d476fbd0 /libbutl
parent9d13afaf232368da54b8aacc1cd737e6dad92de2 (diff)
Add limitation note for small_vector
Diffstat (limited to 'libbutl')
-rw-r--r--libbutl/small-vector.hxx3
1 files changed, 3 insertions, 0 deletions
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 <typename T, std::size_t N>
class small_vector: private small_allocator_buffer<T, N>,
public std::vector<T, small_allocator<T, N>>