diff options
| author | Nikita Popov <npopov@redhat.com> | 2024-06-26 09:20:55 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-26 09:20:55 +0200 |
| commit | 6c4c44b50ba3a08106b37fd5a739c387fef0b961 (patch) | |
| tree | 6e9e9a400d5d2ec676892cc05029a1b660c22dbe /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h | |
| parent | 28a3fbbe8c6cd5b92fb0a2a3cc21a836a381e086 (diff) | |
| download | llvm-6c4c44b50ba3a08106b37fd5a739c387fef0b961.zip llvm-6c4c44b50ba3a08106b37fd5a739c387fef0b961.tar.gz llvm-6c4c44b50ba3a08106b37fd5a739c387fef0b961.tar.bz2 | |
[SetOperations] Support set containers with remove_if (#96613)
The current set_intersect implementation only works for std::set style
sets that have a value-erase method that does not invalidate iterators.
As such, it cannot be used for set containers like SetVector, which only
has iterator-invalidating erase.
Support such set containers by calling the remove_if method instead, if
it exists. The detection code is adopted from how contains() is detected
inside llvm::is_contained().
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h')
0 files changed, 0 insertions, 0 deletions
