Returns a container containing the chain data.
Declared in <folly/io/IOBuf.h>
template<class Container>
Container
to() const;
This is meant to be used with containers such as std::string or std::vector<char>, but any container which supports reserve(), insert(), and has char or unsigned char value type is supported.
A Container whose data equals the coalesced data of this chain
| Name | Description |
|---|---|
| Container | The type of container to return. |