68template <
typename value_t,
size_t alignment_v = __STDCPP_DEFAULT_NEW_ALIGNMENT__>
98 template <
class other_value_type,
size_t other_alignment>
140 size_t bytes_to_allocate = n *
sizeof(
value_type);
141 if constexpr (
alignment <= __STDCPP_DEFAULT_NEW_ALIGNMENT__)
142 return static_cast<pointer>(::operator
new(bytes_to_allocate));
175 size_t bytes_to_deallocate = n *
sizeof(
value_type);
177 if constexpr (
alignment <= __STDCPP_DEFAULT_NEW_ALIGNMENT__)
178 ::operator
delete(p, bytes_to_deallocate);
193 template <
typename new_value_type>
206 template <
class value_type2,
size_t alignment2>
213 template <
class value_type2,
size_t alignment2>
element_type value_type
Definition aligned_allocator.hpp:76
void deallocate(pointer const p, size_type const n) const noexcept
Deallocates the storage referenced by the pointer p, which must be a pointer obtained by an earlier c...
Definition aligned_allocator.hpp:173
constexpr bool operator==(aligned_allocator< value_type2, alignment2 > const &) noexcept
Returns true if the memory-alignment matches.
Definition aligned_allocator.hpp:207
aligned_allocator & operator=(aligned_allocator &&)=default
Defaulted.
pointer allocate(size_type const n) const
Allocates sufficiently large memory to hold n many elements of value_type.
Definition aligned_allocator.hpp:134
value_type * pointer
Definition aligned_allocator.hpp:78
aligned_allocator & operator=(aligned_allocator const &)=default
Defaulted.
constexpr aligned_allocator(aligned_allocator< other_value_type, other_alignment > const &) noexcept
Copy constructor with different value type and alignment.
Definition aligned_allocator.hpp:99
~aligned_allocator()=default
Defaulted.
std::true_type is_always_equal
Definition aligned_allocator.hpp:85
std::make_unsigned_t< difference_type > size_type
Definition aligned_allocator.hpp:82
constexpr bool operator!=(aligned_allocator< value_type2, alignment2 > const &) noexcept
Returns false if the memory-alignment mismatches.
Definition aligned_allocator.hpp:214
aligned_allocator(aligned_allocator const &)=default
Defaulted.
static constexpr size_t alignment
Definition aligned_allocator.hpp:73
aligned_allocator(aligned_allocator &&)=default
Defaulted.
aligned_allocator()=default
Defaulted.
typename std::pointer_traits< pointer >::difference_type difference_type
Definition aligned_allocator.hpp:80
The main SeqAn3 namespace.
Definition aligned_sequence_concept.hpp:26
The aligned_allocator member template class aligned_allocator::rebind provides a way to obtain an all...
Definition aligned_allocator.hpp:195
static constexpr size_t other_alignment
The alignment for the rebound allocator.
Definition aligned_allocator.hpp:197
aligned_allocator< new_value_type, other_alignment > other
The type of the allocator for a different value type.
Definition aligned_allocator.hpp:199