From 18deb8846df8c1bb87b9caeebdcaa2f5cf02f6e0 Mon Sep 17 00:00:00 2001 From: drmortalwombat <90205530+drmortalwombat@users.noreply.github.com> Date: Thu, 8 May 2025 17:31:16 +0200 Subject: [PATCH] Add full() to static_vector --- include/opp/static_vector.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/opp/static_vector.h b/include/opp/static_vector.h index bc48684..237160c 100644 --- a/include/opp/static_vector.h +++ b/include/opp/static_vector.h @@ -69,6 +69,11 @@ public: return _size == 0; } + bool full(void) const + { + return _size == N; + } + size_t capacity(void) const { return N;