attach overloads
Declared in <folly/container/FBVector.h>
Grants the free attach function access to the vector internals.
void
attach(
fbvector<_T, _A>& v,
_T* data,
size_t sz,
size_t cap);
» more...
Attach externally-owned storage to a fresh vector.
template<
class T,
class A>
void
attach(
fbvector<T, A>& v,
T* data,
size_t sz,
size_t cap);
» more...
| Name | Description |
|---|---|
| v | The vector to attach storage to; must be empty. |
| data | Pointer to the external storage. |
| sz | The number of constructed elements in the storage. |
| cap | The capacity of the storage. |