| 1899 | } |
| 1900 | |
| 1901 | void Value::swapPayload(Value& other) { |
| 1902 | ValueType temp = type_; |
| 1903 | type_ = other.type_; |
| 1904 | other.type_ = temp; |
| 1905 | std::swap(value_, other.value_); |
| 1906 | int temp2 = allocated_; |
| 1907 | allocated_ = other.allocated_; |
| 1908 | other.allocated_ = temp2; |
| 1909 | } |
| 1910 | |
| 1911 | void Value::swap(Value& other) { |
| 1912 | swapPayload(other); |
no test coverage detected