Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::internal::AllocatorWithAlignment< T, alignment_bytes, misalignment_bytes > Struct Template Reference

Detailed Description

template<typename T, size_t alignment_bytes, size_t misalignment_bytes>
struct operations_research::internal::AllocatorWithAlignment< T, alignment_bytes, misalignment_bytes >

Definition at line 29 of file aligned_memory_internal.h.

#include <aligned_memory_internal.h>

Inheritance diagram for operations_research::internal::AllocatorWithAlignment< T, alignment_bytes, misalignment_bytes >:

Classes

struct  rebind

Public Member Functions

T * allocate (size_t num_items)
T * allocate (size_t n, const void *)
void deallocate (T *p, size_t)

Member Function Documentation

◆ allocate() [1/2]

template<typename T, size_t alignment_bytes, size_t misalignment_bytes>
T * operations_research::internal::AllocatorWithAlignment< T, alignment_bytes, misalignment_bytes >::allocate ( size_t n,
const void *  )
inline

Definition at line 57 of file aligned_memory_internal.h.

◆ allocate() [2/2]

template<typename T, size_t alignment_bytes, size_t misalignment_bytes>
T * operations_research::internal::AllocatorWithAlignment< T, alignment_bytes, misalignment_bytes >::allocate ( size_t num_items)
inline

Definition at line 33 of file aligned_memory_internal.h.

◆ deallocate()

template<typename T, size_t alignment_bytes, size_t misalignment_bytes>
void operations_research::internal::AllocatorWithAlignment< T, alignment_bytes, misalignment_bytes >::deallocate ( T * p,
size_t  )
inline

Definition at line 60 of file aligned_memory_internal.h.


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