commit | 9065545e1c95bbae2afd37c4b469c0561d82f1fd | [log] [tgz] |
---|---|---|
author | Jan Wilken Dörrie <[email protected]> | Wed Oct 30 10:44:51 2019 |
committer | Commit Bot <[email protected]> | Wed Oct 30 10:44:51 2019 |
tree | 8e02cc833cb287c7ee994845a7591dc191210a0d | |
parent | b16f20dd2ca3c686ca15d971b73411bb6808c4b1 [diff] |
[base] Add Value::Insert In order to prepare for the switch of the return value of Value::GetList() from Value::ListStorage& to span<Value> this change adds an Insert API to Value, allowing callers to insert Values at arbitrary positiions in the list. The signature of the API is inspired by std::vector::insert, taking a insertion position and a Value, and returning an iterator pointing to the just inserted element. Bug: 646113 Change-Id: Ibacc9e1c22ee60b6f35661b66de951746e978b76 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1887694 Commit-Queue: Jan Wilken Dörrie <[email protected]> Reviewed-by: Daniel Cheng <[email protected]> Cr-Commit-Position: refs/heads/master@{#710725}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .