xref: /freebsd/contrib/llvm-project/libcxx/include/__fwd/complex.h (revision 0fca6ea1d4eea4c934cfff25ac9ee8ad6fe95583)
1*0fca6ea1SDimitry Andric //===---------------------------------------------------------------------===//
2*0fca6ea1SDimitry Andric //
3*0fca6ea1SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4*0fca6ea1SDimitry Andric // See https://llvm.org/LICENSE.txt for license information.
5*0fca6ea1SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6*0fca6ea1SDimitry Andric //
7*0fca6ea1SDimitry Andric //===---------------------------------------------------------------------===//
8*0fca6ea1SDimitry Andric 
9*0fca6ea1SDimitry Andric #ifndef _LIBCPP___FWD_COMPLEX_H
10*0fca6ea1SDimitry Andric #define _LIBCPP___FWD_COMPLEX_H
11*0fca6ea1SDimitry Andric 
12*0fca6ea1SDimitry Andric #include <__config>
13*0fca6ea1SDimitry Andric #include <cstddef>
14*0fca6ea1SDimitry Andric 
15*0fca6ea1SDimitry Andric #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
16*0fca6ea1SDimitry Andric #  pragma GCC system_header
17*0fca6ea1SDimitry Andric #endif
18*0fca6ea1SDimitry Andric 
19*0fca6ea1SDimitry Andric _LIBCPP_BEGIN_NAMESPACE_STD
20*0fca6ea1SDimitry Andric 
21*0fca6ea1SDimitry Andric template <class _Tp>
22*0fca6ea1SDimitry Andric class _LIBCPP_TEMPLATE_VIS complex;
23*0fca6ea1SDimitry Andric 
24*0fca6ea1SDimitry Andric #if _LIBCPP_STD_VER >= 26
25*0fca6ea1SDimitry Andric 
26*0fca6ea1SDimitry Andric template <size_t _Ip, class _Tp>
27*0fca6ea1SDimitry Andric _LIBCPP_HIDE_FROM_ABI constexpr _Tp& get(complex<_Tp>&) noexcept;
28*0fca6ea1SDimitry Andric 
29*0fca6ea1SDimitry Andric template <size_t _Ip, class _Tp>
30*0fca6ea1SDimitry Andric _LIBCPP_HIDE_FROM_ABI constexpr _Tp&& get(complex<_Tp>&&) noexcept;
31*0fca6ea1SDimitry Andric 
32*0fca6ea1SDimitry Andric template <size_t _Ip, class _Tp>
33*0fca6ea1SDimitry Andric _LIBCPP_HIDE_FROM_ABI constexpr const _Tp& get(const complex<_Tp>&) noexcept;
34*0fca6ea1SDimitry Andric 
35*0fca6ea1SDimitry Andric template <size_t _Ip, class _Tp>
36*0fca6ea1SDimitry Andric _LIBCPP_HIDE_FROM_ABI constexpr const _Tp&& get(const complex<_Tp>&&) noexcept;
37*0fca6ea1SDimitry Andric 
38*0fca6ea1SDimitry Andric #endif // _LIBCPP_STD_VER >= 26
39*0fca6ea1SDimitry Andric 
40*0fca6ea1SDimitry Andric _LIBCPP_END_NAMESPACE_STD
41*0fca6ea1SDimitry Andric 
42*0fca6ea1SDimitry Andric #endif // _LIBCPP___FWD_COMPLEX_H
43