mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
Get rid of some cruft in the insert method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14704 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f3f6382423
commit
800473c8df
@ -84,11 +84,11 @@ public:
|
||||
/// @returns true iff the element was inserted into the SetVector.
|
||||
/// @brief Insert a new element into the SetVector.
|
||||
bool insert( const value_type& X ) {
|
||||
std::pair<typename set_type::iterator,bool> insertion_result = set_.insert(X);
|
||||
if ( insertion_result.second ) {
|
||||
bool result = set_.insert(X).second;
|
||||
if ( result ) {
|
||||
vector_.push_back(X);
|
||||
}
|
||||
return insertion_result.second;
|
||||
return result;
|
||||
}
|
||||
|
||||
/// @returns 0 if the element is not in the SetVector, 1 if it is.
|
||||
|
@ -84,11 +84,11 @@ public:
|
||||
/// @returns true iff the element was inserted into the SetVector.
|
||||
/// @brief Insert a new element into the SetVector.
|
||||
bool insert( const value_type& X ) {
|
||||
std::pair<typename set_type::iterator,bool> insertion_result = set_.insert(X);
|
||||
if ( insertion_result.second ) {
|
||||
bool result = set_.insert(X).second;
|
||||
if ( result ) {
|
||||
vector_.push_back(X);
|
||||
}
|
||||
return insertion_result.second;
|
||||
return result;
|
||||
}
|
||||
|
||||
/// @returns 0 if the element is not in the SetVector, 1 if it is.
|
||||
|
Loading…
x
Reference in New Issue
Block a user