2 //===----------------------------------------------------------------------===//
4 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5 // See https://llvm.org/LICENSE.txt for license information.
6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
8 //===----------------------------------------------------------------------===//
10 export namespace std {
11 // [variant.variant], class template variant
14 // [variant.helper], variant helper classes
15 using std::variant_alternative;
16 using std::variant_npos;
17 using std::variant_size;
18 using std::variant_size_v;
20 // [variant.get], value access
23 using std::holds_alternative;
24 using std::variant_alternative_t;
26 // [variant.relops], relational operators
27 using std::operator==;
28 using std::operator!=;
31 using std::operator<=;
32 using std::operator>=;
33 using std::operator<=>;
35 // [variant.visit], visitation
38 // [variant.monostate], class monostate
41 // [variant.specalg], specialized algorithms
44 // [variant.bad.access], class bad_variant_access
45 using std::bad_variant_access;
47 // [variant.hash], hash support