diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2024-08-12 13:09:03 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2024-09-13 07:38:56 -0400 |
commit | d8ea57169cf9e4d2d6979e19902e283385a49d71 (patch) | |
tree | d8f05d0c97db2104fc54b6f32e4f6ab94426cdb3 /gdb/python/py-xmethods.c | |
parent | 96917d0541db09977afaba3e6f8a53bfb31bcf45 (diff) | |
download | binutils-d8ea57169cf9e4d2d6979e19902e283385a49d71.zip binutils-d8ea57169cf9e4d2d6979e19902e283385a49d71.tar.gz binutils-d8ea57169cf9e4d2d6979e19902e283385a49d71.tar.bz2 |
gdbsupport/intrusive-list: make insert return an iterator
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].
[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
Reviewed-by: Keith Seitz <keiths@redhat.com>
Diffstat (limited to 'gdb/python/py-xmethods.c')
0 files changed, 0 insertions, 0 deletions