Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C++
How many bytes does a vector have?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="John Harrison, post: 1508617"] There is no guaranteed way of determining how many bytes a vector is using. That should be pretty close, providing N == capacity() not N == size(). The capacity of a vector is how much storage it has allocated for itself, this is often more than the size of the vector. John [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C++
How many bytes does a vector have?
Top