aboutsummaryrefslogtreecommitdiff
path: root/butl
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-04-12 15:57:13 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-04-12 15:57:13 +0200
commit0048f00ad1fabbdad8ed51287c70a9a90acb3c14 (patch)
tree6ff32b972615523f982334355b581611cc9c220a /butl
parenta6898daed9df0ab4fc7cbb3336fe7383fc4774e9 (diff)
Add vector_view::assign(), clear()
Diffstat (limited to 'butl')
-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_);}