[libcxx-commits] [libcxx] [libc++] Only make comparators transparent in __tree if they don't cause a conversion (PR #179453)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Wed Feb 4 06:36:17 PST 2026


================
@@ -380,7 +380,7 @@ struct less<void> {
 };
 
 template <class _Tp>
-struct __make_transparent<less<_Tp> > {
+struct __make_transparent<_Tp, less<_Tp> > {
----------------
ldionne wrote:

Ack. In that case we should clearly document what the `_Tp` in `__make_transparent<_Tp, _Compare>` is. At the moment it's not super clear; should it be the type of the key contained in the map or should it be the type of the key that we're using to perform the search? What we document in `__make_transparent` should make that obvious.

https://github.com/llvm/llvm-project/pull/179453


More information about the libcxx-commits mailing list