From 4f398620abbf06b062576f34c5a6b11f938b02ad Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Thu, 23 Mar 2017 14:36:56 +1100 Subject: [PATCH] view: add make_cview function for pointers --- view.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/view.hpp b/view.hpp index 78db55ee..4072e598 100644 --- a/view.hpp +++ b/view.hpp @@ -87,6 +87,13 @@ namespace util { return view {first, last}; } + template + auto + make_cview (T *first, T *last) + { + return view {first, last}; + } + // string conversions view make_view (const char *str); view make_view (char *str);