Move objects from another storage, but don't destroy any objects currently stored in *this. You need to call destroy() first if necessary (e.g. in a move assignment operator).
| 89 | // You need to call destroy() first if necessary (e.g. in a |
| 90 | // move assignment operator). |
| 91 | void move_construct(StaticVectorStorage&& other) noexcept { |
| 92 | size_ = other.size_; |
| 93 | if (size_ != 0) { |
| 94 | // Use a compile-time memcpy size (N) for trivial types |
| 95 | storage_type::move_construct_several(other.static_data_, static_data_, size_, N); |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | constexpr size_t capacity() const { return N; } |
| 100 |
nothing calls this directly
no outgoing calls
no test coverage detected