aboutsummaryrefslogtreecommitdiff
path: root/butl/vector-view
diff options
context:
space:
mode:
Diffstat (limited to 'butl/vector-view')
-rw-r--r--butl/vector-view2
1 files changed, 2 insertions, 0 deletions
diff --git a/butl/vector-view b/butl/vector-view
index 30a786c..c0cc433 100644
--- a/butl/vector-view
+++ b/butl/vector-view
@@ -88,6 +88,8 @@ namespace butl
// modifiers:
//
+ void assign (T* d, size_type s) {data_ = d; size_ = s;}
+ void clear () {data_ = nullptr; size_ = 0;}
void swap (vector_view& v) {
std::swap (data_, v.data_); std::swap (size_, v.size_);}