diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-07-04 14:20:48 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-07-04 14:20:48 +0200 |
commit | 55a5c46253d219845aff8a3101e557754c072984 (patch) | |
tree | 7e5de45c23c2c8d48d1e31414bd4eca348962fdc /Libraries/LibGUI | |
parent | 57da8792fd51f8417a45675ff83dd8432a999bdc (diff) | |
download | serenity-55a5c46253d219845aff8a3101e557754c072984.zip |
AK: Add Vector::insert_before_matching(T&&, callback);
This allows you to do things like:
vector.insert_before_matching(value, [](auto& entry) {
return value < entry;
});
Basically it scans until it finds an element that matches the condition
callback and then inserts the new value before the matching element.
Diffstat (limited to 'Libraries/LibGUI')
0 files changed, 0 insertions, 0 deletions