diff --git a/ostd/string.hh b/ostd/string.hh index eaeb534..ba26a49 100644 --- a/ostd/string.hh +++ b/ostd/string.hh @@ -455,7 +455,7 @@ public: p_len = v.p_len; p_cap = v.p_cap; p_buf.~StrPair(); - new (&p_buf) StrPair(v.disown(), move(v.p_buf.second())); + new (&p_buf) StrPair(v.release(), move(v.p_buf.second())); if (!p_cap) { p_buf.first() = reinterpret_cast(&p_len); } @@ -559,7 +559,7 @@ public: bool empty() const { return (size() == 0); } - Value *disown() { + Value *release() { Pointer r = p_buf.first(); p_buf.first() = nullptr; p_len = p_cap = 0; diff --git a/ostd/vector.hh b/ostd/vector.hh index 5fc7b53..3678ddb 100644 --- a/ostd/vector.hh +++ b/ostd/vector.hh @@ -218,7 +218,7 @@ public: p_len = v.p_len; p_cap = v.p_cap; p_buf.~VecPair(); - new (&p_buf) VecPair(v.disown(), move(v.p_buf.second())); + new (&p_buf) VecPair(v.release(), move(v.p_buf.second())); return *this; } @@ -398,7 +398,7 @@ public: return ptr >= p_buf.first() && ptr < &p_buf.first()[p_len]; } - Value *disown() { + Value *release() { Pointer r = p_buf.first(); p_buf.first() = nullptr; p_len = p_cap = 0;