mirror of
https://github.com/Tencent/rapidjson.git
synced 2025-11-12 03:07:55 +01:00
Adding swap() for GenericMember
This commit is contained in:
@@ -17,10 +17,7 @@ static void printIt(const Value &doc) {
|
||||
}
|
||||
|
||||
struct NameComparator {
|
||||
bool operator()(
|
||||
const GenericMember<UTF8<>, MemoryPoolAllocator<> > &lhs,
|
||||
const GenericMember<UTF8<>, MemoryPoolAllocator<> > &rhs) const
|
||||
{
|
||||
bool operator()(const Value::Member &lhs, const Value::Member &rhs) const {
|
||||
return (strcmp(lhs.name.GetString(), rhs.name.GetString()) < 0);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user