From 0048f00ad1fabbdad8ed51287c70a9a90acb3c14 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 12 Apr 2016 15:57:13 +0200 Subject: Add vector_view::assign(), clear() --- butl/vector-view | 2 ++ 1 file changed, 2 insertions(+) (limited to 'butl') 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_);} -- cgit v1.1