+ implemented member and non-member swap
This commit is contained in:
1 parent
7724d34741
commit
a144800774
4 files changed
+154
-4
No files matched your search
@@ -1268,6 +1268,12 @@ void json::clear() noexcept
|
||||
}
|
||||
}
|
||||
|
||||
void json::swap(json& o) noexcept
|
||||
{
|
||||
std::swap(type_, o.type_);
|
||||
std::swap(value_, o.value_);
|
||||
}
|
||||
|
||||
json::value_type json::type() const noexcept
|
||||
{
|
||||
return type_;
|
||||
|
||||
Reference in new issue
Block a user