From 6252525091d78466544d7a7a395a68ca36e24a07 Mon Sep 17 00:00:00 2001 From: Brett Date: Wed, 25 Oct 2023 01:23:33 -0400 Subject: [PATCH] .data() --- include/blt/std/memory.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/blt/std/memory.h b/include/blt/std/memory.h index 4114cb2..c20a98b 100755 --- a/include/blt/std/memory.h +++ b/include/blt/std/memory.h @@ -228,6 +228,16 @@ namespace blt return ptr_iterator{_buffer}; } + inline T* data() const + { + return _buffer; + } + + ptr_iterator data() + { + return ptr_iterator{_buffer}; + } + ptr_iterator end() { return ptr_iterator{&_buffer[_size]};