[PATCH] D145895: [ADT] Implement {DenseMap,MapVector,StringMap}::contains
Kazu Hirata via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 12 22:23:53 PDT 2023
kazu created this revision.
Herald added a project: All.
kazu requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
This patch implements the C++20-style contains() for DenseMap,
MapVector, and StringMap.
With this patch, every set and map container type that has count()
also has contains().
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D145895
Files:
llvm/include/llvm/ADT/DenseMap.h
llvm/include/llvm/ADT/MapVector.h
llvm/include/llvm/ADT/StringMap.h
llvm/unittests/ADT/DenseMapTest.cpp
llvm/unittests/ADT/MapVectorTest.cpp
llvm/unittests/ADT/StringMapTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145895.504506.patch
Type: text/x-patch
Size: 4300 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230313/5453feb6/attachment-0001.bin>
More information about the llvm-commits
mailing list