https://git.reactos.org/?p=reactos.git;a=commitdiff;h=6c37a7255ec4d87fd2ff1…
commit 6c37a7255ec4d87fd2ff181d3cbcde3fe41a396f
Author: Mark Jansen <mark.jansen(a)reactos.org>
AuthorDate: Mon Jan 20 20:10:40 2020 +0100
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Thu Apr 30 20:38:43 2020 +0200
[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<E, ETraits>::GetAt(size_t iElement)
const
return m_pData[iElement];
}
+template<typename E, class ETraits>
+E* CAtlArray<E, ETraits>::GetData()
+{
+ return m_pData;
+}
+
+template<typename E, class ETraits>
+const E* CAtlArray<E, ETraits>::GetData() const
+{
+ return m_pData;
+}
template<typename E, class ETraits = CElementTraits<E> >