[libcxx-commits] [PATCH] D59344: Add contains method to map types

Joe Loser via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Fri Apr 5 19:44:27 PDT 2019


jloser added inline comments.


================
Comment at: include/map:2051
+    typename enable_if<__is_transparent<_Compare, _K2>::value, bool>::type
+    contains(const _K2& __k) const {return find(__k) != end();}
+#endif // _LIBCPP_STD_VER > 17
----------------
Just a note that while `contains` supports transparent keys now, `find` does not yet. Are you planning on implementing http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0919r3.html or want me to do it?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D59344/new/

https://reviews.llvm.org/D59344





More information about the libcxx-commits mailing list