You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ff59040
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/atl/reference/ccomdynamicunkarray-class.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ class CComDynamicUnkArray
35
35
|[CComDynamicUnkArray::end](#end)|Returns a pointer to one past the last `IUnknown` pointer in the collection.|
36
36
|[CComDynamicUnkArray::GetAt](#getat)|Retrieves the element at the specified index.|
37
37
|[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.|
39
39
|[CComDynamicUnkArray::GetUnknown](#getunknown)|Call this method to get the `IUnknown` pointer associated with a given cookie.|
40
40
|[CComDynamicUnkArray::Remove](#remove)|Call this method to remove an `IUnknown` pointer from the array.|
41
41
@@ -73,7 +73,7 @@ Returns the cookie associated with the newly added pointer. Use this cookie to r
73
73
74
74
### Remarks
75
75
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.
77
77
78
78
## <aname="begin"></a> CComDynamicUnkArray::begin
79
79
@@ -96,7 +96,7 @@ Before using the `IUnknown` interface, you should check that it is not NULL.
96
96
97
97
## <aname="clear"></a> CComDynamicUnkArray::clear
98
98
99
-
Empties the array, resetting the size to 0.
99
+
Empties the array. Resets the size to 0.
100
100
101
101
```cpp
102
102
voidclear();
@@ -130,7 +130,7 @@ Frees resources allocated by the class constructor.
130
130
131
131
Returns a pointer to one-past the last element in the array's allocated buffer.
132
132
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.
134
134
135
135
```
136
136
IUnknown**
@@ -156,7 +156,7 @@ The index of the element to retrieve.
156
156
157
157
### Return Value
158
158
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`.
0 commit comments