Lines Matching refs:Alignment
20 template <typename T, size_t Alignment>
23 template <size_t Alignment>
24 class AlignedAllocator<void, Alignment> {
32 typedef AlignedAllocator<U, Alignment> other;
36 template <typename T, size_t Alignment>
53 typedef AlignedAllocator<U, Alignment> other;
61 const AlignedAllocator<U, Alignment>& other) noexcept {} in AlignedAllocator()
64 return (std::numeric_limits<size_type>::max() - size_type(Alignment)) / in max_size()
78 typename AlignedAllocator<void, Alignment>::const_pointer hint = 0) {
81 memory = _aligned_malloc(n * sizeof(T), Alignment);
88 void* memory = memalign(Alignment, n * sizeof(T));
96 if (posix_memalign(&memory, Alignment, n * sizeof(T)) != 0) {