mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Add StringPairArray::swapWith
This commit is contained in:
@@ -44,6 +44,13 @@ StringPairArray& StringPairArray::operator= (const StringPairArray& other)
|
||||
return *this;
|
||||
}
|
||||
|
||||
void StringPairArray::swapWith (StringPairArray& other)
|
||||
{
|
||||
std::swap (ignoreCase, other.ignoreCase);
|
||||
keys.swapWith (other.keys);
|
||||
values.swapWith (other.values);
|
||||
}
|
||||
|
||||
bool StringPairArray::operator== (const StringPairArray& other) const
|
||||
{
|
||||
for (int i = keys.size(); --i >= 0;)
|
||||
|
||||
Reference in New Issue
Block a user