From 7757b76a328736913c4bb6e319199764fd289741 Mon Sep 17 00:00:00 2001 From: Tor Egge Date: Fri, 8 Apr 2022 18:02:10 +0200 Subject: Use data() member function to get pointer to the underlying array. --- vespalib/src/vespa/vespalib/util/arrayref.h | 1 + 1 file changed, 1 insertion(+) (limited to 'vespalib') diff --git a/vespalib/src/vespa/vespalib/util/arrayref.h b/vespalib/src/vespa/vespalib/util/arrayref.h index bc1fc540a6c..337833d2457 100644 --- a/vespalib/src/vespa/vespalib/util/arrayref.h +++ b/vespalib/src/vespa/vespalib/util/arrayref.h @@ -50,6 +50,7 @@ public: const T *cend() const { return _v + _sz; } const T *begin() const { return _v; } const T *end() const { return _v + _sz; } + const T *data() const noexcept { return _v; } private: const T *_v; size_t _sz; -- cgit v1.2.3