/// erase - If the set contains the specified pointer, remove it and return
/// true, otherwise return false.
- bool erase(void * const Ptr);
+ bool erase(const void * Ptr);
- bool count(void * const Ptr) const {
+ bool count(const void * Ptr) const {
if (isSmall()) {
// Linear search for the item.
for (const void *const *APtr = SmallArray,
return true;
}
-bool SmallPtrSetImpl::erase(void * const Ptr) {
+bool SmallPtrSetImpl::erase(const void * Ptr) {
if (isSmall()) {
// Check to see if it is in the set.
for (const void **APtr = SmallArray, **E = SmallArray+NumElements;