mirror of
https://github.com/intel/llvm.git
synced 2026-01-14 11:57:39 +08:00
This adds the cppm files of D144994. These files by themselves will do nothing. The goal is to reduce the size of D144994 and making it easier to review the real changes of the patch. Implements parts of - P2465R3 Standard Library Modules std and std.compat Reviewed By: ldionne, ChuanqiXu, aaronmondal, #libc Differential Revision: https://reviews.llvm.org/D151030
38 lines
1.2 KiB
C++
38 lines
1.2 KiB
C++
// -*- C++ -*-
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// 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
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
module;
|
|
#include <memory_resource>
|
|
|
|
export module std:memory_resource;
|
|
export namespace std::pmr {
|
|
// [mem.res.class], class memory_resource
|
|
using std::pmr::memory_resource;
|
|
|
|
using std::pmr::operator==;
|
|
#if 1 // P1614
|
|
using std::operator!=;
|
|
#endif
|
|
|
|
// [mem.poly.allocator.class], class template polymorphic_allocator
|
|
using std::pmr::polymorphic_allocator;
|
|
|
|
// [mem.res.global], global memory resources
|
|
using std::pmr::get_default_resource;
|
|
using std::pmr::new_delete_resource;
|
|
using std::pmr::null_memory_resource;
|
|
using std::pmr::set_default_resource;
|
|
|
|
// [mem.res.pool], pool resource classes
|
|
using std::pmr::monotonic_buffer_resource;
|
|
using std::pmr::pool_options;
|
|
using std::pmr::synchronized_pool_resource;
|
|
using std::pmr::unsynchronized_pool_resource;
|
|
} // namespace std::pmr
|