4
4
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5
5
// See https://llvm.org/LICENSE.txt for license information.
6
6
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7
- // SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES.
7
+ // SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES.
8
8
//
9
9
// ===----------------------------------------------------------------------===//
10
10
@@ -55,11 +55,7 @@ struct _LIBCUDACXX_TEMPLATE_VIS plus<void>
55
55
typedef void is_transparent;
56
56
};
57
57
58
- #if _CCCL_STD_VER > 2011
59
58
template <class _Tp = void >
60
- #else
61
- template <class _Tp >
62
- #endif
63
59
struct _LIBCUDACXX_TEMPLATE_VIS minus : __binary_function<_Tp, _Tp, _Tp>
64
60
{
65
61
typedef _Tp __result_type; // used by valarray
@@ -71,7 +67,6 @@ struct _LIBCUDACXX_TEMPLATE_VIS minus : __binary_function<_Tp, _Tp, _Tp>
71
67
};
72
68
_LIBCUDACXX_CTAD_SUPPORTED_FOR_TYPE (minus);
73
69
74
- #if _CCCL_STD_VER > 2011
75
70
template <>
76
71
struct _LIBCUDACXX_TEMPLATE_VIS minus<void >
77
72
{
@@ -85,7 +80,6 @@ struct _LIBCUDACXX_TEMPLATE_VIS minus<void>
85
80
}
86
81
typedef void is_transparent;
87
82
};
88
- #endif
89
83
90
84
template <class _Tp = void >
91
85
struct _LIBCUDACXX_TEMPLATE_VIS multiplies : __binary_function<_Tp, _Tp, _Tp>
@@ -113,11 +107,7 @@ struct _LIBCUDACXX_TEMPLATE_VIS multiplies<void>
113
107
typedef void is_transparent;
114
108
};
115
109
116
- #if _CCCL_STD_VER > 2011
117
110
template <class _Tp = void >
118
- #else
119
- template <class _Tp >
120
- #endif
121
111
struct _LIBCUDACXX_TEMPLATE_VIS divides : __binary_function<_Tp, _Tp, _Tp>
122
112
{
123
113
typedef _Tp __result_type; // used by valarray
@@ -129,7 +119,6 @@ struct _LIBCUDACXX_TEMPLATE_VIS divides : __binary_function<_Tp, _Tp, _Tp>
129
119
};
130
120
_LIBCUDACXX_CTAD_SUPPORTED_FOR_TYPE (divides);
131
121
132
- #if _CCCL_STD_VER > 2011
133
122
template <>
134
123
struct _LIBCUDACXX_TEMPLATE_VIS divides<void >
135
124
{
@@ -143,13 +132,8 @@ struct _LIBCUDACXX_TEMPLATE_VIS divides<void>
143
132
}
144
133
typedef void is_transparent;
145
134
};
146
- #endif
147
135
148
- #if _CCCL_STD_VER > 2011
149
136
template <class _Tp = void >
150
- #else
151
- template <class _Tp >
152
- #endif
153
137
struct _LIBCUDACXX_TEMPLATE_VIS modulus : __binary_function<_Tp, _Tp, _Tp>
154
138
{
155
139
typedef _Tp __result_type; // used by valarray
@@ -161,7 +145,6 @@ struct _LIBCUDACXX_TEMPLATE_VIS modulus : __binary_function<_Tp, _Tp, _Tp>
161
145
};
162
146
_LIBCUDACXX_CTAD_SUPPORTED_FOR_TYPE (modulus);
163
147
164
- #if _CCCL_STD_VER > 2011
165
148
template <>
166
149
struct _LIBCUDACXX_TEMPLATE_VIS modulus<void >
167
150
{
@@ -175,7 +158,6 @@ struct _LIBCUDACXX_TEMPLATE_VIS modulus<void>
175
158
}
176
159
typedef void is_transparent;
177
160
};
178
- #endif
179
161
180
162
template <class _Tp = void >
181
163
struct _LIBCUDACXX_TEMPLATE_VIS negate : __unary_function<_Tp, _Tp>
@@ -204,11 +186,7 @@ struct _LIBCUDACXX_TEMPLATE_VIS negate<void>
204
186
205
187
// Bitwise operations
206
188
207
- #if _CCCL_STD_VER > 2011
208
189
template <class _Tp = void >
209
- #else
210
- template <class _Tp >
211
- #endif
212
190
struct _LIBCUDACXX_TEMPLATE_VIS bit_and : __binary_function<_Tp, _Tp, _Tp>
213
191
{
214
192
typedef _Tp __result_type; // used by valarray
@@ -220,7 +198,6 @@ struct _LIBCUDACXX_TEMPLATE_VIS bit_and : __binary_function<_Tp, _Tp, _Tp>
220
198
};
221
199
_LIBCUDACXX_CTAD_SUPPORTED_FOR_TYPE (bit_and);
222
200
223
- #if _CCCL_STD_VER > 2011
224
201
template <>
225
202
struct _LIBCUDACXX_TEMPLATE_VIS bit_and<void >
226
203
{
@@ -234,9 +211,7 @@ struct _LIBCUDACXX_TEMPLATE_VIS bit_and<void>
234
211
}
235
212
typedef void is_transparent;
236
213
};
237
- #endif
238
214
239
- #if _CCCL_STD_VER > 2011
240
215
template <class _Tp = void >
241
216
struct _LIBCUDACXX_TEMPLATE_VIS bit_not : __unary_function<_Tp, _Tp>
242
217
{
@@ -260,13 +235,8 @@ struct _LIBCUDACXX_TEMPLATE_VIS bit_not<void>
260
235
}
261
236
typedef void is_transparent;
262
237
};
263
- #endif
264
238
265
- #if _CCCL_STD_VER > 2011
266
239
template <class _Tp = void >
267
- #else
268
- template <class _Tp >
269
- #endif
270
240
struct _LIBCUDACXX_TEMPLATE_VIS bit_or : __binary_function<_Tp, _Tp, _Tp>
271
241
{
272
242
typedef _Tp __result_type; // used by valarray
@@ -278,7 +248,6 @@ struct _LIBCUDACXX_TEMPLATE_VIS bit_or : __binary_function<_Tp, _Tp, _Tp>
278
248
};
279
249
_LIBCUDACXX_CTAD_SUPPORTED_FOR_TYPE (bit_or);
280
250
281
- #if _CCCL_STD_VER > 2011
282
251
template <>
283
252
struct _LIBCUDACXX_TEMPLATE_VIS bit_or<void >
284
253
{
@@ -292,13 +261,8 @@ struct _LIBCUDACXX_TEMPLATE_VIS bit_or<void>
292
261
}
293
262
typedef void is_transparent;
294
263
};
295
- #endif
296
264
297
- #if _CCCL_STD_VER > 2011
298
265
template <class _Tp = void >
299
- #else
300
- template <class _Tp >
301
- #endif
302
266
struct _LIBCUDACXX_TEMPLATE_VIS bit_xor : __binary_function<_Tp, _Tp, _Tp>
303
267
{
304
268
typedef _Tp __result_type; // used by valarray
@@ -310,7 +274,6 @@ struct _LIBCUDACXX_TEMPLATE_VIS bit_xor : __binary_function<_Tp, _Tp, _Tp>
310
274
};
311
275
_LIBCUDACXX_CTAD_SUPPORTED_FOR_TYPE (bit_xor);
312
276
313
- #if _CCCL_STD_VER > 2011
314
277
template <>
315
278
struct _LIBCUDACXX_TEMPLATE_VIS bit_xor<void >
316
279
{
@@ -324,15 +287,10 @@ struct _LIBCUDACXX_TEMPLATE_VIS bit_xor<void>
324
287
}
325
288
typedef void is_transparent;
326
289
};
327
- #endif
328
290
329
291
// Comparison operations
330
292
331
- #if _CCCL_STD_VER > 2011
332
293
template <class _Tp = void >
333
- #else
334
- template <class _Tp >
335
- #endif
336
294
struct _LIBCUDACXX_TEMPLATE_VIS equal_to : __binary_function<_Tp, _Tp, bool >
337
295
{
338
296
typedef bool __result_type; // used by valarray
@@ -344,7 +302,6 @@ struct _LIBCUDACXX_TEMPLATE_VIS equal_to : __binary_function<_Tp, _Tp, bool>
344
302
};
345
303
_LIBCUDACXX_CTAD_SUPPORTED_FOR_TYPE (equal_to);
346
304
347
- #if _CCCL_STD_VER > 2011
348
305
template <>
349
306
struct _LIBCUDACXX_TEMPLATE_VIS equal_to<void >
350
307
{
@@ -358,13 +315,8 @@ struct _LIBCUDACXX_TEMPLATE_VIS equal_to<void>
358
315
}
359
316
typedef void is_transparent;
360
317
};
361
- #endif
362
318
363
- #if _CCCL_STD_VER > 2011
364
319
template <class _Tp = void >
365
- #else
366
- template <class _Tp >
367
- #endif
368
320
struct _LIBCUDACXX_TEMPLATE_VIS not_equal_to : __binary_function<_Tp, _Tp, bool >
369
321
{
370
322
typedef bool __result_type; // used by valarray
@@ -376,7 +328,6 @@ struct _LIBCUDACXX_TEMPLATE_VIS not_equal_to : __binary_function<_Tp, _Tp, bool>
376
328
};
377
329
_LIBCUDACXX_CTAD_SUPPORTED_FOR_TYPE (not_equal_to);
378
330
379
- #if _CCCL_STD_VER > 2011
380
331
template <>
381
332
struct _LIBCUDACXX_TEMPLATE_VIS not_equal_to<void >
382
333
{
@@ -390,13 +341,8 @@ struct _LIBCUDACXX_TEMPLATE_VIS not_equal_to<void>
390
341
}
391
342
typedef void is_transparent;
392
343
};
393
- #endif
394
344
395
- #if _CCCL_STD_VER > 2011
396
345
template <class _Tp = void >
397
- #else
398
- template <class _Tp >
399
- #endif
400
346
struct _LIBCUDACXX_TEMPLATE_VIS less : __binary_function<_Tp, _Tp, bool >
401
347
{
402
348
typedef bool __result_type; // used by valarray
@@ -408,7 +354,6 @@ struct _LIBCUDACXX_TEMPLATE_VIS less : __binary_function<_Tp, _Tp, bool>
408
354
};
409
355
_LIBCUDACXX_CTAD_SUPPORTED_FOR_TYPE (less);
410
356
411
- #if _CCCL_STD_VER > 2011
412
357
template <>
413
358
struct _LIBCUDACXX_TEMPLATE_VIS less<void >
414
359
{
@@ -422,13 +367,8 @@ struct _LIBCUDACXX_TEMPLATE_VIS less<void>
422
367
}
423
368
typedef void is_transparent;
424
369
};
425
- #endif
426
370
427
- #if _CCCL_STD_VER > 2011
428
371
template <class _Tp = void >
429
- #else
430
- template <class _Tp >
431
- #endif
432
372
struct _LIBCUDACXX_TEMPLATE_VIS less_equal : __binary_function<_Tp, _Tp, bool >
433
373
{
434
374
typedef bool __result_type; // used by valarray
@@ -440,7 +380,6 @@ struct _LIBCUDACXX_TEMPLATE_VIS less_equal : __binary_function<_Tp, _Tp, bool>
440
380
};
441
381
_LIBCUDACXX_CTAD_SUPPORTED_FOR_TYPE (less_equal);
442
382
443
- #if _CCCL_STD_VER > 2011
444
383
template <>
445
384
struct _LIBCUDACXX_TEMPLATE_VIS less_equal<void >
446
385
{
@@ -454,13 +393,8 @@ struct _LIBCUDACXX_TEMPLATE_VIS less_equal<void>
454
393
}
455
394
typedef void is_transparent;
456
395
};
457
- #endif
458
396
459
- #if _CCCL_STD_VER > 2011
460
397
template <class _Tp = void >
461
- #else
462
- template <class _Tp >
463
- #endif
464
398
struct _LIBCUDACXX_TEMPLATE_VIS greater_equal : __binary_function<_Tp, _Tp, bool >
465
399
{
466
400
typedef bool __result_type; // used by valarray
@@ -472,7 +406,6 @@ struct _LIBCUDACXX_TEMPLATE_VIS greater_equal : __binary_function<_Tp, _Tp, bool
472
406
};
473
407
_LIBCUDACXX_CTAD_SUPPORTED_FOR_TYPE (greater_equal);
474
408
475
- #if _CCCL_STD_VER > 2011
476
409
template <>
477
410
struct _LIBCUDACXX_TEMPLATE_VIS greater_equal<void >
478
411
{
@@ -486,13 +419,8 @@ struct _LIBCUDACXX_TEMPLATE_VIS greater_equal<void>
486
419
}
487
420
typedef void is_transparent;
488
421
};
489
- #endif
490
422
491
- #if _CCCL_STD_VER > 2011
492
423
template <class _Tp = void >
493
- #else
494
- template <class _Tp >
495
- #endif
496
424
struct _LIBCUDACXX_TEMPLATE_VIS greater : __binary_function<_Tp, _Tp, bool >
497
425
{
498
426
typedef bool __result_type; // used by valarray
@@ -504,7 +432,6 @@ struct _LIBCUDACXX_TEMPLATE_VIS greater : __binary_function<_Tp, _Tp, bool>
504
432
};
505
433
_LIBCUDACXX_CTAD_SUPPORTED_FOR_TYPE (greater);
506
434
507
- #if _CCCL_STD_VER > 2011
508
435
template <>
509
436
struct _LIBCUDACXX_TEMPLATE_VIS greater<void >
510
437
{
@@ -518,15 +445,10 @@ struct _LIBCUDACXX_TEMPLATE_VIS greater<void>
518
445
}
519
446
typedef void is_transparent;
520
447
};
521
- #endif
522
448
523
449
// Logical operations
524
450
525
- #if _CCCL_STD_VER > 2011
526
451
template <class _Tp = void >
527
- #else
528
- template <class _Tp >
529
- #endif
530
452
struct _LIBCUDACXX_TEMPLATE_VIS logical_and : __binary_function<_Tp, _Tp, bool >
531
453
{
532
454
typedef bool __result_type; // used by valarray
@@ -538,7 +460,6 @@ struct _LIBCUDACXX_TEMPLATE_VIS logical_and : __binary_function<_Tp, _Tp, bool>
538
460
};
539
461
_LIBCUDACXX_CTAD_SUPPORTED_FOR_TYPE (logical_and);
540
462
541
- #if _CCCL_STD_VER > 2011
542
463
template <>
543
464
struct _LIBCUDACXX_TEMPLATE_VIS logical_and<void >
544
465
{
@@ -552,13 +473,8 @@ struct _LIBCUDACXX_TEMPLATE_VIS logical_and<void>
552
473
}
553
474
typedef void is_transparent;
554
475
};
555
- #endif
556
476
557
- #if _CCCL_STD_VER > 2011
558
477
template <class _Tp = void >
559
- #else
560
- template <class _Tp >
561
- #endif
562
478
struct _LIBCUDACXX_TEMPLATE_VIS logical_not : __unary_function<_Tp, bool >
563
479
{
564
480
typedef bool __result_type; // used by valarray
@@ -570,7 +486,6 @@ struct _LIBCUDACXX_TEMPLATE_VIS logical_not : __unary_function<_Tp, bool>
570
486
};
571
487
_LIBCUDACXX_CTAD_SUPPORTED_FOR_TYPE (logical_not);
572
488
573
- #if _CCCL_STD_VER > 2011
574
489
template <>
575
490
struct _LIBCUDACXX_TEMPLATE_VIS logical_not<void >
576
491
{
@@ -583,13 +498,8 @@ struct _LIBCUDACXX_TEMPLATE_VIS logical_not<void>
583
498
}
584
499
typedef void is_transparent;
585
500
};
586
- #endif
587
501
588
- #if _CCCL_STD_VER > 2011
589
502
template <class _Tp = void >
590
- #else
591
- template <class _Tp >
592
- #endif
593
503
struct _LIBCUDACXX_TEMPLATE_VIS logical_or : __binary_function<_Tp, _Tp, bool >
594
504
{
595
505
typedef bool __result_type; // used by valarray
@@ -601,7 +511,6 @@ struct _LIBCUDACXX_TEMPLATE_VIS logical_or : __binary_function<_Tp, _Tp, bool>
601
511
};
602
512
_LIBCUDACXX_CTAD_SUPPORTED_FOR_TYPE (logical_or);
603
513
604
- #if _CCCL_STD_VER > 2011
605
514
template <>
606
515
struct _LIBCUDACXX_TEMPLATE_VIS logical_or<void >
607
516
{
@@ -615,7 +524,6 @@ struct _LIBCUDACXX_TEMPLATE_VIS logical_or<void>
615
524
}
616
525
typedef void is_transparent;
617
526
};
618
- #endif
619
527
620
528
_LIBCUDACXX_END_NAMESPACE_STD
621
529
0 commit comments