From 58ee1d09d9c4541dd9a06872fc9e1ab1b187a4ee Mon Sep 17 00:00:00 2001 From: Ramya Eliger Date: Fri, 14 Aug 2026 17:10:12 +0530 Subject: [PATCH] document aliasing precondition for array::insert(pos, init) --- include/boost/json/array.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/boost/json/array.hpp b/include/boost/json/array.hpp index 016cc48ba..918dcad21 100644 --- a/include/boost/json/array.hpp +++ b/include/boost/json/array.hpp @@ -946,7 +946,8 @@ class array past-the-end iterators are also invalidated. @pre - `first` and `last` are not iterators into `*this`. + `first` and `last` are not iterators into `*this`. Elements of `init` + do not refer to `*this` or its elements. @par Constraints @code