mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-21 03:50:16 +00:00
Update vector.hpp
This commit is contained in:
parent
5af32db45f
commit
dfd0d0532b
@ -336,13 +336,7 @@ struct small_vector {
|
||||
other._capacity = other._begin + N;
|
||||
}
|
||||
|
||||
small_vector& operator= (const small_vector& other) noexcept {
|
||||
if(this != &other) {
|
||||
~small_vector();
|
||||
::new (this) small_vector(other);
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
small_vector& operator= (const small_vector& other) = delete;
|
||||
|
||||
small_vector& operator= (small_vector&& other) noexcept {
|
||||
if(this != &other) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user