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."],[[["\u003cp\u003e\u003ccode\u003eCompactVectorVector\u003c/code\u003e is a C++ class likely designed for efficient storage and manipulation of vectors of vectors.\u003c/p\u003e\n"],["\u003cp\u003eIt provides methods like \u003ccode\u003eAdd\u003c/code\u003e for adding elements, \u003ccode\u003eclear\u003c/code\u003e for resetting the structure, and \u003ccode\u003esize\u003c/code\u003e for checking the current size.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAdd\u003c/code\u003e offers a way to append data and returns the previous size, which is beneficial for specific use cases mentioned in the documentation.\u003c/p\u003e\n"]]],["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"],null,["# CompactVectorVector\n\nC++ Reference: class CompactVectorVector\n========================================\n\n\nNote: This documentation is automatically generated.\n\n| Method ||\n|-------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------|\n| [`Add`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/inclusion.h#L43) | Return type: `int ` Arguments: `absl::Span\u003cconst T\u003e data` Same as push_back(). Returns the previous size() as this is convenient for how we use it. |\n| [`clear`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/inclusion.h#L61) | Return type: `void ` \u003cbr /\u003e |\n| [`size`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/inclusion.h#L67) | Return type: `size_t ` \u003cbr /\u003e |"]]