From 6c37a7255ec4d87fd2ff181d3cbcde3fe41a396f Mon Sep 17 00:00:00 2001 From: Mark Jansen Date: Mon, 20 Jan 2020 20:10:40 +0100 Subject: [PATCH] [ATL] Add CAtlArray::GetData --- sdk/lib/atl/atlcoll.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/sdk/lib/atl/atlcoll.h b/sdk/lib/atl/atlcoll.h index 32b9b46362d..8750def4c19 100644 --- a/sdk/lib/atl/atlcoll.h +++ b/sdk/lib/atl/atlcoll.h @@ -261,6 +261,10 @@ public: E& GetAt(size_t iElement); const E& GetAt(size_t iElement) const; + E* GetData(); + const E* GetData() const; + + //FIXME: Most of this class is missing! }; @@ -403,6 +407,17 @@ const E& CAtlArray::GetAt(size_t iElement) const return m_pData[iElement]; } +template +E* CAtlArray::GetData() +{ + return m_pData; +} + +template +const E* CAtlArray::GetData() const +{ + return m_pData; +} template >