Cuda battery library
Loading...
Searching...
No Matches
tuple.hpp
Go to the documentation of this file.
1// Copyright 2021 Pierre Talbot
2
3#ifndef CUDA_BATTERY_TUPLE_HPP
4#define CUDA_BATTERY_TUPLE_HPP
5
6#ifdef __NVCC__
7 #include <cuda/std/tuple>
8#else
9 #include <tuple>
10#endif
11
12namespace battery {
13#ifdef __NVCC__
14 using cuda::std::tuple;
15 using cuda::std::make_tuple;
16 using cuda::std::tie;
17 using cuda::std::forward_as_tuple;
18 using cuda::std::tuple_cat;
19 using cuda::std::get;
20 using cuda::std::tuple_size;
21 using cuda::std::tuple_size_v;
22 using cuda::std::tuple_element;
23 using cuda::std::uses_allocator;
24 using cuda::std::ignore;
25#else
26 using std::tuple;
27 using std::make_tuple;
28 using std::tie;
29 using std::forward_as_tuple;
30 using std::tuple_cat;
31 using std::get;
32 using std::tuple_size;
33 using std::tuple_size_v;
34 using std::tuple_element;
35 using std::uses_allocator;
36 using std::ignore;
37#endif
38}
39
40#endif
Definition algorithm.hpp:10