folly::padded

Utilities for storing data aligned on block (possibly cache-line) boundaries, with optional padding.

Types

NameDescription
Adaptor Adaptor around a STL sequence container.
Iterator Wrapper around iterators to Node to return iterators to the underlying node elements.
Node A Node is a fixed-size container of as many objects of type T as would fit in a region of memory of size NS. The last NS % sizeof(T) bytes are ignored and uninitialized.

Functions

NameDescription
begin begin overloads
cbegin Given a container to Node, return iterators to the first element in the first Node / one past the last element in the last Node. Note that the last node is assumed to be full; if that's not the case, subtract from end() as appropriate.
cend Returns a const element iterator one past the last element in the last Node.
end end overloads