-
Notifications
You must be signed in to change notification settings - Fork 715
Updated KniDeviceList
to use internal::DeviceListBase
.
#1797
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated KniDeviceList
to use internal::DeviceListBase
.
#1797
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #1797 +/- ##
==========================================
- Coverage 83.07% 83.07% -0.01%
==========================================
Files 284 284
Lines 48967 48966 -1
Branches 10550 10389 -161
==========================================
- Hits 40681 40679 -2
+ Misses 7181 7180 -1
- Partials 1105 1107 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
/// @brief Get the current capacity of the vector. | ||
/// @return The number of elements that can be held in the vector without requiring a reallocation. | ||
size_t capacity() const | ||
{ | ||
return m_Vector.capacity(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not at the moment, but since a reserve
is provided, it seems nice to also provide a way to actually check the capacity of the vector, no? Most of the containers I have seen either have both or neither.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess it's ok and we can keep it...
Changes:
reserve
andcapacity
toPointerVector
KniDeviceList
to useinternal::DeviceListBase
.