[all-commits] [llvm/llvm-project] 3fca07: [libc++] [P0458] Add map::contains and set::contai...

Marek Kurdej via All-commits all-commits at lists.llvm.org
Tue Apr 13 08:16:21 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3fca07d7b9a29fe829c8f04642d35a3bbb94d4d1
      https://github.com/llvm/llvm-project/commit/3fca07d7b9a29fe829c8f04642d35a3bbb94d4d1
  Author: Marek Kurdej <marek.kurdej+llvm.org at gmail.com>
  Date:   2021-04-13 (Tue, 13 Apr 2021)

  Changed paths:
    M libcxx/docs/Cxx2aStatusPaperStatus.csv
    M libcxx/include/map
    M libcxx/include/set
    R libcxx/test/std/containers/associative/map/contains.pass.cpp
    A libcxx/test/std/containers/associative/map/map.ops/contains.pass.cpp
    A libcxx/test/std/containers/associative/map/map.ops/contains_transparent.pass.cpp
    A libcxx/test/std/containers/associative/set/contains_transparent.pass.cpp

  Log Message:
  -----------
  [libc++] [P0458] Add map::contains and set::contains for heterogenous lookup missed in a17b1aed.

Commit rGa17b1aed added `bool contains(const key_type& x) const;` methods to associative containers, but didn't add `template<class K> bool contains(const K& x) const;` for heterogenous lookup.

Reviewed By: #libc, Quuxplusone, ldionne

Differential Revision: https://reviews.llvm.org/D100369




More information about the All-commits mailing list