Skip to content

Commit ff59040

Browse files
authored
Update ccomdynamicunkarray-class.md
a few edits and fix broken link
1 parent 0ffe6d5 commit ff59040

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

‎docs/atl/reference/ccomdynamicunkarray-class.md‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class CComDynamicUnkArray
3535
|[CComDynamicUnkArray::end](#end)|Returns a pointer to one past the last `IUnknown` pointer in the collection.|
3636
|[CComDynamicUnkArray::GetAt](#getat)|Retrieves the element at the specified index.|
3737
|[CComDynamicUnkArray::GetCookie](#getcookie)|Call this method to get the cookie associated with a given `IUnknown` pointer.|
38-
|[CComDynamicUnkArray::GetSize](#getsize)|Returns the allocated capacity of the array.|
38+
|[CComDynamicUnkArray::GetSize](#getsize)|Returns the number of elements the array can store.|
3939
|[CComDynamicUnkArray::GetUnknown](#getunknown)|Call this method to get the `IUnknown` pointer associated with a given cookie.|
4040
|[CComDynamicUnkArray::Remove](#remove)|Call this method to remove an `IUnknown` pointer from the array.|
4141

@@ -73,7 +73,7 @@ Returns the cookie associated with the newly added pointer. Use this cookie to r
7373

7474
### Remarks
7575

76-
The position this item is inserted will not necessarily be directly after the last-inserted item, if `Remove()` was previously called on this array. Use the returned cookie to reliably access the inserted pointer.
76+
The position where this item is inserted won't necessarily be directly after the last-inserted item if `Remove()` was previously called on this array. Use the returned cookie to reliably access the inserted pointer.
7777

7878
## <a name="begin"></a> CComDynamicUnkArray::begin
7979

@@ -96,7 +96,7 @@ Before using the `IUnknown` interface, you should check that it is not NULL.
9696

9797
## <a name="clear"></a> CComDynamicUnkArray::clear
9898

99-
Empties the array, resetting the size to 0.
99+
Empties the array. Resets the size to 0.
100100

101101
```cpp
102102
void clear();
@@ -130,7 +130,7 @@ Frees resources allocated by the class constructor.
130130

131131
Returns a pointer to one-past the last element in the array's allocated buffer.
132132

133-
Note: this means that the last-inserted pointer is not guaranteed to be found at `end()-1`, since the array's capacity might not have yet been reached.
133+
Note: this means that the last-inserted pointer is not guaranteed to be at `end()-1` because the array may not be filled to capacity.
134134

135135
```
136136
IUnknown**
@@ -156,7 +156,7 @@ The index of the element to retrieve.
156156

157157
### Return Value
158158

159-
A pointer to an [IUnknown](/windows/win32/api/unknwn/nn-unknwn-iunknown) interface, if an element was previously added and exists at this index; NULL otherwise.
159+
A pointer to an [IUnknown](/windows/win32/api/unknwn/nn-unknwn-iunknown) interface if an element was previously added and exists at this index; otherwise `NULL`.
160160

161161
## <a name="getcookie"></a> CComDynamicUnkArray::GetCookie
162162

@@ -191,9 +191,9 @@ int GetSize() const;
191191

192192
### Return Value
193193

194-
The number of elements for which the array has currently allocated space. `GetSize() == end() - begin()`.
194+
The number of elements the array can store. `GetSize() == end() - begin()`.
195195

196-
## CComDynamicUnkArray::GetUnknown
196+
## <a name="getunknown"></a> CComDynamicUnkArray::GetUnknown
197197

198198
Call this method to get the `IUnknown` pointer associated with a given cookie.
199199

@@ -214,7 +214,7 @@ Returns the `IUnknown` pointer, or NULL if no matching cookie is found.
214214

215215
Call this method to remove an `IUnknown` pointer from the array.
216216

217-
Note: All other elements are unchanged and retain their index and cookie.
217+
All other elements are unchanged and retain their index and cookie.
218218

219219
```
220220
BOOL Remove(DWORD dwCookie);

0 commit comments

Comments
 (0)