Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / libcxx / modules / std / variant.inc
blob6fcecddbedaf50c698d0f32c4143061336412d98
1 // -*- C++ -*-
2 //===----------------------------------------------------------------------===//
3 //
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
7 //
8 //===----------------------------------------------------------------------===//
10 export namespace std {
11   // [variant.variant], class template variant
12   using std::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
21   using std::get;
22   using std::get_if;
23   using std::holds_alternative;
24   using std::variant_alternative_t;
26   // [variant.relops], relational operators
27   using std::operator==;
28   using std::operator!=;
29   using std::operator<;
30   using std::operator>;
31   using std::operator<=;
32   using std::operator>=;
33   using std::operator<=>;
35   // [variant.visit], visitation
36   using std::visit;
38   // [variant.monostate], class monostate
39   using std::monostate;
41   // [variant.specalg], specialized algorithms
42   using std::swap;
44   // [variant.bad.access], class bad_variant_access
45   using std::bad_variant_access;
47   // [variant.hash], hash support
48   using std::hash;
49 } // namespace std