| 288 | } |
| 289 | |
| 290 | static void move(storage_union& src, storage_union& dest) noexcept |
| 291 | { |
| 292 | // one of the conditions for using vtable_stack is a nothrow move constructor, |
| 293 | // so this move constructor will never throw a exception. |
| 294 | new(&dest.stack) T(std::move(reinterpret_cast<T&>(src.stack))); |
| 295 | destroy(src); |
| 296 | } |
| 297 | |
| 298 | static void swap(storage_union& lhs, storage_union& rhs) noexcept |
| 299 | { |