1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 12:02:58 +02:00

Have DenseSet::insert return a bool indicating whether the insertion succeeded or not.

llvm-svn: 53033
This commit is contained in:
Owen Anderson 2008-07-02 17:29:59 +00:00
parent 5747d627e0
commit dd29406f31

View File

@ -41,8 +41,8 @@ public:
return TheMap.count(V);
}
void insert(const ValueT &V) {
TheMap[V] = 0;
bool insert(const ValueT &V) {
return TheMap.insert(std::make_pair(V, 0));
}
void erase(const ValueT &V) {