+ implemented member and non-member swap
This commit is contained in:
parent
7724d34741
commit
a144800774
4 changed files with 154 additions and 4 deletions
|
|
@ -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_;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue