| 31 | |
| 32 | #if !_LIBCPP_HAS_ALIGNED_ALLOCATION |
| 33 | static bool is_aligned_to(void* ptr, size_t align) { |
| 34 | void* p2 = ptr; |
| 35 | size_t space = 1; |
| 36 | void* result = std::align(align, 1, p2, space); |
| 37 | return (result == ptr); |
| 38 | } |
| 39 | #endif |
| 40 | |
| 41 | class _LIBCPP_HIDDEN __new_delete_memory_resource_imp : public memory_resource { |