| 1 | // { dg-do compile } |
| 2 | // { dg-require-normal-namespace "" } |
| 3 | |
| 4 | // Copyright (C) 2007-2025 Free Software Foundation, Inc. |
| 5 | // |
| 6 | // This file is part of the GNU ISO C++ Library. This library is free |
| 7 | // software; you can redistribute it and/or modify it under the |
| 8 | // terms of the GNU General Public License as published by the |
| 9 | // Free Software Foundation; either version 3, or (at your option) |
| 10 | // any later version. |
| 11 | |
| 12 | // This library is distributed in the hope that it will be useful, |
| 13 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | // GNU General Public License for more details. |
| 16 | |
| 17 | // You should have received a copy of the GNU General Public License along |
| 18 | // with this library; see the file COPYING3. If not see |
| 19 | // <http://www.gnu.org/licenses/>. |
| 20 | |
| 21 | #include <valarray> |
| 22 | |
| 23 | namespace std { |
| 24 | template<class T> class valarray; |
| 25 | |
| 26 | class slice; |
| 27 | template<class T> class slice_array; |
| 28 | |
| 29 | class gslice; |
| 30 | template<class T> class gslice_array; |
| 31 | template<class T> class mask_array; |
| 32 | template<class T> class indirect_array; |
| 33 | template<class T> valarray<T> operator* |
| 34 | (const valarray<T>&, const valarray<T>&); |
| 35 | template<class T> valarray<T> operator* (const valarray<T>&, const T&); |
| 36 | template<class T> valarray<T> operator* (const T&, const valarray<T>&); |
| 37 | |
| 38 | template<class T> valarray<T> operator/ |
| 39 | (const valarray<T>&, const valarray<T>&); |
| 40 | template<class T> valarray<T> operator/ (const valarray<T>&, const T&); |
| 41 | template<class T> valarray<T> operator/ (const T&, const valarray<T>&); |
| 42 | template<class T> valarray<T> operator% |
| 43 | (const valarray<T>&, const valarray<T>&); |
| 44 | template<class T> valarray<T> operator% (const valarray<T>&, const T&); |
| 45 | template<class T> valarray<T> operator% (const T&, const valarray<T>&); |
| 46 | template<class T> valarray<T> operator+ |
| 47 | (const valarray<T>&, const valarray<T>&); |
| 48 | template<class T> valarray<T> operator+ (const valarray<T>&, const T&); |
| 49 | template<class T> valarray<T> operator+ (const T&, const valarray<T>&); |
| 50 | template<class T> valarray<T> operator- |
| 51 | (const valarray<T>&, const valarray<T>&); |
| 52 | template<class T> valarray<T> operator- (const valarray<T>&, const T&); |
| 53 | template<class T> valarray<T> operator- (const T&, const valarray<T>&); |
| 54 | template<class T> valarray<T> operator^ |
| 55 | (const valarray<T>&, const valarray<T>&); |
| 56 | template<class T> valarray<T> operator^ (const valarray<T>&, const T&); |
| 57 | template<class T> valarray<T> operator^ (const T&, const valarray<T>&); |
| 58 | template<class T> valarray<T> operator& |
| 59 | (const valarray<T>&, const valarray<T>&); |
| 60 | template<class T> valarray<T> operator& (const valarray<T>&, const T&); |
| 61 | template<class T> valarray<T> operator& (const T&, const valarray<T>&); |
| 62 | template<class T> valarray<T> operator| |
| 63 | (const valarray<T>&, const valarray<T>&); |
| 64 | template<class T> valarray<T> operator| (const valarray<T>&, const T&); |
| 65 | template<class T> valarray<T> operator| (const T&, const valarray<T>&); |
| 66 | template<class T> valarray<T> operator<< |
| 67 | (const valarray<T>&, const valarray<T>&); |
| 68 | template<class T> valarray<T> operator<<(const valarray<T>&, const T&); |
| 69 | template<class T> valarray<T> operator<<(const T&, const valarray<T>&); |
| 70 | template<class T> valarray<T> operator>> |
| 71 | (const valarray<T>&, const valarray<T>&); |
| 72 | template<class T> valarray<T> operator>>(const valarray<T>&, const T&); |
| 73 | template<class T> valarray<T> operator>>(const T&, const valarray<T>&); |
| 74 | template<class T> valarray<bool> operator&& |
| 75 | (const valarray<T>&, const valarray<T>&); |
| 76 | template<class T> valarray<bool> operator&&(const valarray<T>&, const T&); |
| 77 | template<class T> valarray<bool> operator&&(const T&, const valarray<T>&); |
| 78 | template<class T> valarray<bool> operator|| |
| 79 | (const valarray<T>&, const valarray<T>&); |
| 80 | template<class T> valarray<bool> operator||(const valarray<T>&, const T&); |
| 81 | template<class T> valarray<bool> operator||(const T&, const valarray<T>&); |
| 82 | |
| 83 | template<class T> |
| 84 | valarray<bool> operator==(const valarray<T>&, const valarray<T>&); |
| 85 | template<class T> valarray<bool> operator==(const valarray<T>&, const T&); |
| 86 | template<class T> valarray<bool> operator==(const T&, const valarray<T>&); |
| 87 | template<class T> |
| 88 | valarray<bool> operator!=(const valarray<T>&, const valarray<T>&); |
| 89 | template<class T> valarray<bool> operator!=(const valarray<T>&, const T&); |
| 90 | template<class T> valarray<bool> operator!=(const T&, const valarray<T>&); |
| 91 | template<class T> |
| 92 | valarray<bool> operator< (const valarray<T>&, const valarray<T>&); |
| 93 | template<class T> valarray<bool> operator< (const valarray<T>&, const T&); |
| 94 | template<class T> valarray<bool> operator< (const T&, const valarray<T>&); |
| 95 | template<class T> |
| 96 | valarray<bool> operator> (const valarray<T>&, const valarray<T>&); |
| 97 | template<class T> valarray<bool> operator> (const valarray<T>&, const T&); |
| 98 | template<class T> valarray<bool> operator> (const T&, const valarray<T>&); |
| 99 | template<class T> |
| 100 | valarray<bool> operator<=(const valarray<T>&, const valarray<T>&); |
| 101 | template<class T> valarray<bool> operator<=(const valarray<T>&, const T&); |
| 102 | template<class T> valarray<bool> operator<=(const T&, const valarray<T>&); |
| 103 | template<class T> |
| 104 | valarray<bool> operator>=(const valarray<T>&, const valarray<T>&); |
| 105 | template<class T> valarray<bool> operator>=(const valarray<T>&, const T&); |
| 106 | template<class T> valarray<bool> operator>=(const T&, const valarray<T>&); |
| 107 | template<class T> valarray<T> abs (const valarray<T>&); |
| 108 | template<class T> valarray<T> acos (const valarray<T>&); |
| 109 | template<class T> valarray<T> asin (const valarray<T>&); |
| 110 | template<class T> valarray<T> atan (const valarray<T>&); |
| 111 | template<class T> valarray<T> atan2 |
| 112 | (const valarray<T>&, const valarray<T>&); |
| 113 | template<class T> valarray<T> atan2(const valarray<T>&, const T&); |
| 114 | template<class T> valarray<T> atan2(const T&, const valarray<T>&); |
| 115 | template<class T> valarray<T> cos (const valarray<T>&); |
| 116 | template<class T> valarray<T> cosh (const valarray<T>&); |
| 117 | template<class T> valarray<T> exp (const valarray<T>&); |
| 118 | template<class T> valarray<T> log (const valarray<T>&); |
| 119 | template<class T> valarray<T> log10(const valarray<T>&); |
| 120 | template<class T> valarray<T> pow(const valarray<T>&, const valarray<T>&); |
| 121 | template<class T> valarray<T> pow(const valarray<T>&, const T&); |
| 122 | template<class T> valarray<T> pow(const T&, const valarray<T>&); |
| 123 | template<class T> valarray<T> sin (const valarray<T>&); |
| 124 | template<class T> valarray<T> sinh (const valarray<T>&); |
| 125 | template<class T> valarray<T> sqrt (const valarray<T>&); |
| 126 | template<class T> valarray<T> tan (const valarray<T>&); |
| 127 | template<class T> valarray<T> tanh (const valarray<T>&); |
| 128 | } |