| 1208 | // clang-format on |
| 1209 | |
| 1210 | void Swap(FlatBufferBuilder &other) { |
| 1211 | using std::swap; |
| 1212 | buf_.swap(other.buf_); |
| 1213 | swap(num_field_loc, other.num_field_loc); |
| 1214 | swap(max_voffset_, other.max_voffset_); |
| 1215 | swap(nested, other.nested); |
| 1216 | swap(finished, other.finished); |
| 1217 | swap(minalign_, other.minalign_); |
| 1218 | swap(force_defaults_, other.force_defaults_); |
| 1219 | swap(dedup_vtables_, other.dedup_vtables_); |
| 1220 | swap(string_pool, other.string_pool); |
| 1221 | } |
| 1222 | |
| 1223 | ~FlatBufferBuilder() { |
| 1224 | if (string_pool) delete string_pool; |
no test coverage detected