proxygen
folly::padded::Node< T, NS, Enable > Class Template Reference

#include <Padded.h>

Detailed Description

template<class T, size_t NS, class Enable = void>
class folly::padded::Node< T, NS, Enable >

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.

Node only works for trivial types, which is usually not a concern. This is intentional: Node itself is trivial, which means that it can be serialized / deserialized using a simple memcpy.

Definition at line 57 of file Padded.h.


The documentation for this class was generated from the following file: