[PATCH 2/4] gdbsupport/intrusive-list: make insert return an iterator
Keith Seitz
keiths@redhat.com
Thu Sep 12 22:53:19 GMT 2024
Hi,
On 8/12/24 10:09 AM, Simon Marchi wrote:
> Make the insert method return an iterator to the inserted element. This
> mimics what boost does [1] and what the standard library insert methods
> generally do [2].
If I don't already sound like a broken record, I appreciate this change
to make our APIs more similar to more widely used APIs which provide
similar features.
Reviewed-by: Keith Seitz <keiths@redhat.com>
Keith
>
> [1] https://www.boost.org/doc/libs/1_79_0/doc/html/boost/intrusive/list.html#idm33771-bb
> [2] https://en.cppreference.com/w/cpp/container/vector/insert
>
> Change-Id: I59082883492c60ee95e8bb29a18c9376283dd660
More information about the Gdb-patches
mailing list