diff options
author | Tor Egge <Tor.Egge@yahooinc.com> | 2022-04-08 18:02:10 +0200 |
---|---|---|
committer | Tor Egge <Tor.Egge@yahooinc.com> | 2022-04-08 18:02:10 +0200 |
commit | 7757b76a328736913c4bb6e319199764fd289741 (patch) | |
tree | d9d11aebddad8992a6c1b2cc9ff0a7afadf5856f /vespalib | |
parent | 0e31957a72309321bfcb23ede796f0ad10b936e7 (diff) |
Use data() member function to get pointer to the underlying array.
Diffstat (limited to 'vespalib')
-rw-r--r-- | vespalib/src/vespa/vespalib/util/arrayref.h | 1 |
1 files changed, 1 insertions, 0 deletions
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; |