From: Pierre Schweitzer Date: Wed, 13 Nov 2019 21:56:16 +0000 (+0100) Subject: [SDK] Implement std::vector.data() X-Git-Tag: 0.4.14-RC~1196 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=114556b1c97859f81cf73881c5f2a5ad0de1c2df;ds=inline [SDK] Implement std::vector.data() --- diff --git a/sdk/include/c++/stlport/stl/_vector.h b/sdk/include/c++/stlport/stl/_vector.h index ed243ef3749..4eb9d755278 100644 --- a/sdk/include/c++/stlport/stl/_vector.h +++ b/sdk/include/c++/stlport/stl/_vector.h @@ -210,6 +210,9 @@ public: reference at(size_type __n) { _M_range_check(__n); return (*this)[__n]; } const_reference at(size_type __n) const { _M_range_check(__n); return (*this)[__n]; } + _Tp* data() { return this->_M_start; } + const _Tp* data() const { return this->_M_start; } + #if !defined (_STLP_DONT_SUP_DFLT_PARAM) explicit vector(const allocator_type& __a = allocator_type()) #else