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
60 lines
1.5 KiB
C++
60 lines
1.5 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 <tuple>
|
|
|
|
export module std:tuple;
|
|
export namespace std {
|
|
// [tuple.tuple], class template tuple
|
|
using std::tuple;
|
|
|
|
// [tuple.like], concept tuple-like
|
|
|
|
// [tuple.common.ref], common_reference related specializations
|
|
using std::basic_common_reference;
|
|
using std::common_type;
|
|
|
|
// [tuple.creation], tuple creation functions
|
|
using std::ignore;
|
|
|
|
using std::forward_as_tuple;
|
|
using std::make_tuple;
|
|
using std::tie;
|
|
using std::tuple_cat;
|
|
|
|
// [tuple.apply], calling a function with a tuple of arguments
|
|
using std::apply;
|
|
|
|
using std::make_from_tuple;
|
|
|
|
// [tuple.helper], tuple helper classes
|
|
using std::tuple_element;
|
|
using std::tuple_size;
|
|
|
|
using std::tuple_element_t;
|
|
|
|
// [tuple.elem], element access
|
|
using std::get;
|
|
using std::tuple_element_t;
|
|
|
|
// [tuple.rel], relational operators
|
|
using std::operator==;
|
|
using std::operator<=>;
|
|
|
|
// [tuple.traits], allocator-related traits
|
|
using std::uses_allocator;
|
|
|
|
// [tuple.special], specialized algorithms
|
|
using std::swap;
|
|
|
|
// [tuple.helper], tuple helper classes
|
|
using std::tuple_size_v;
|
|
} // namespace std
|