From 7f12a7050a95d2b20e8cd9cc381c9256740a312b Mon Sep 17 00:00:00 2001 From: Bananymous Date: Thu, 16 Feb 2023 20:47:49 +0200 Subject: [PATCH] BAN: Add data() to Vector. This allows you to access the underlying data in a vector --- BAN/include/BAN/Vector.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/BAN/include/BAN/Vector.h b/BAN/include/BAN/Vector.h index f20c91a4..66defc61 100644 --- a/BAN/include/BAN/Vector.h +++ b/BAN/include/BAN/Vector.h @@ -49,6 +49,9 @@ namespace BAN void remove(size_type); void clear(); + T* data() { return m_data; } + const T* data() const { return m_data; } + bool contains(const T&) const; const T& operator[](size_type) const;