Stay organized with collections
Save and categorize content based on your preferences.
C++ Reference: class CompactVectorVector
Note: This documentation is automatically generated.
Method |
Add | Return type: int Arguments: absl::Span<const T> data Same as push_back().
Returns the previous size() as this is convenient for how we use it.
|
clear | Return type: void |
size | Return type: size_t |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-08-06 UTC.
[null,null,["Last updated 2024-08-06 UTC."],[],["The `CompactVectorVector` class in C++ provides methods for managing a collection of vectors. `Add` (equivalent to `push_back`) appends data to the collection and returns the previous size. `clear` removes all elements from the collection. `size` returns the current number of vectors in the collection. These methods are used to manipulate and access the underlying data structure of the class.\n"]]