//===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #ifndef _LIBCPP___MEMORY_BUILTIN_NEW_ALLOCATOR_H #define _LIBCPP___MEMORY_BUILTIN_NEW_ALLOCATOR_H #include <__config> #include <__memory/unique_ptr.h> #include <cstddef> #include <new> #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header #endif _LIBCPP_BEGIN_NAMESPACE_STD // __builtin_new_allocator -- A non-templated helper for allocating and // deallocating memory using __builtin_operator_new and // __builtin_operator_delete. It should be used in preference to // `std::allocator<T>` to avoid additional instantiations. struct __builtin_new_allocator { … }; _LIBCPP_END_NAMESPACE_STD #endif // _LIBCPP___MEMORY_BUILTIN_NEW_ALLOCATOR_H