[all-commits] [llvm/llvm-project] 217006: [ADT] Implement {DenseMap, MapVector, StringMap}::co...
kazutakahirata via All-commits
all-commits at lists.llvm.org
Mon Mar 13 09:13:42 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 21700677cb44f58a8f4c9d9ed6c05dd049108854
https://github.com/llvm/llvm-project/commit/21700677cb44f58a8f4c9d9ed6c05dd049108854
Author: Kazu Hirata <kazu at google.com>
Date: 2023-03-13 (Mon, 13 Mar 2023)
Changed paths:
M llvm/include/llvm/ADT/DenseMap.h
M llvm/include/llvm/ADT/MapVector.h
M llvm/include/llvm/ADT/StringMap.h
M llvm/unittests/ADT/DenseMapTest.cpp
M llvm/unittests/ADT/MapVectorTest.cpp
M llvm/unittests/ADT/StringMapTest.cpp
Log Message:
-----------
[ADT] Implement {DenseMap,MapVector,StringMap}::contains
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().
Differential Revision: https://reviews.llvm.org/D145895
More information about the All-commits
mailing list