lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
Loading...
Searching...
No Matches
AlignmentAllocator.hh File Reference

AlignmentAllocator, a standard-library allocator that returns N-byte aligned storage (adapted from a Stack Overflow answer, per the file comment). More...

#include <stdlib.h>

Classes

class  Pds::AlignmentAllocator< T, N >
 Stateless allocator for standard containers that allocates with posix_memalign() at N-byte alignment (default 16). More...
 
struct  Pds::AlignmentAllocator< T, N >::rebind< T2 >
 Gives the same allocator for element type T2 (as other). More...
 

Namespaces

namespace  Pds
 Outer namespace of the HSD digitizer helpers.
 

Detailed Description

AlignmentAllocator, a standard-library allocator that returns N-byte aligned storage (adapted from a Stack Overflow answer, per the file comment).