[all-commits] [llvm/llvm-project] 75272d: [ADT] Relax type requirements for `is_contained`
Jakub Kuderski via All-commits
all-commits at lists.llvm.org
Tue Feb 21 10:14:40 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 75272d5c1299db93aa619fc9e616832f578726c2
https://github.com/llvm/llvm-project/commit/75272d5c1299db93aa619fc9e616832f578726c2
Author: Jakub Kuderski <kubak at google.com>
Date: 2023-02-21 (Tue, 21 Feb 2023)
Changed paths:
M llvm/include/llvm/ADT/STLExtras.h
M llvm/unittests/ADT/STLExtrasTest.cpp
Log Message:
-----------
[ADT] Relax type requirements for `is_contained`
- Do not require both the `Set` and `Element` to be exactly the same type and, instead, only require them to be comparable.
- Do not require `Element` to be copyable.
- Add missing documentation comment.
Reviewed By: beanz
Differential Revision: https://reviews.llvm.org/D144416
More information about the All-commits
mailing list