[ATL] Add CAtlArray::GetData

This commit is contained in:
Mark Jansen 2020-01-20 20:10:40 +01:00
parent 0340c5188c
commit 6c37a7255e
No known key found for this signature in database
GPG key ID: B39240EE84BEAE8B

View file

@ -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> >