4
4
#ifndef TAO_TUPLE_TUPLE_HPP
5
5
#define TAO_TUPLE_TUPLE_HPP
6
6
7
+ #include " ../seq/at_index.hpp"
7
8
#include " ../seq/config.hpp"
8
9
#include " ../seq/exclusive_scan.hpp"
9
10
#include " ../seq/inclusive_scan.hpp"
13
14
#include " ../seq/map.hpp"
14
15
#include " ../seq/minus.hpp"
15
16
#include " ../seq/sum.hpp"
16
- #include " ../seq/type_by_index.hpp"
17
17
18
18
#include < memory>
19
19
#include < type_traits>
@@ -66,13 +66,13 @@ namespace std
66
66
namespace tao
67
67
{
68
68
template < std::size_t I, typename ... Ts >
69
- TAO_TUPLE_CONSTEXPR TAO_TUPLE_CUDA_ANNOTATE_COMMON const seq::type_by_index_t < I, Ts... >& get ( const tuple< Ts... >& ) noexcept ;
69
+ TAO_TUPLE_CONSTEXPR TAO_TUPLE_CUDA_ANNOTATE_COMMON const seq::at_index_t < I, Ts... >& get ( const tuple< Ts... >& ) noexcept ;
70
70
71
71
template < std::size_t I, typename ... Ts >
72
- TAO_TUPLE_CONSTEXPR TAO_TUPLE_CUDA_ANNOTATE_COMMON seq::type_by_index_t < I, Ts... >& get ( tuple< Ts... >& ) noexcept ;
72
+ TAO_TUPLE_CONSTEXPR TAO_TUPLE_CUDA_ANNOTATE_COMMON seq::at_index_t < I, Ts... >& get ( tuple< Ts... >& ) noexcept ;
73
73
74
74
template < std::size_t I, typename ... Ts >
75
- TAO_TUPLE_CONSTEXPR TAO_TUPLE_CUDA_ANNOTATE_COMMON seq::type_by_index_t < I, Ts... >&& get( const tuple< Ts... >&& ) noexcept ;
75
+ TAO_TUPLE_CONSTEXPR TAO_TUPLE_CUDA_ANNOTATE_COMMON seq::at_index_t < I, Ts... >&& get( const tuple< Ts... >&& ) noexcept ;
76
76
77
77
namespace impl
78
78
{
@@ -409,13 +409,13 @@ namespace tao
409
409
base_t base;
410
410
411
411
template < std::size_t I, typename ... Us >
412
- friend TAO_TUPLE_CONSTEXPR TAO_TUPLE_CUDA_ANNOTATE_COMMON const seq::type_by_index_t < I, Us... >& get ( const tuple< Us... >& ) noexcept ;
412
+ friend TAO_TUPLE_CONSTEXPR TAO_TUPLE_CUDA_ANNOTATE_COMMON const seq::at_index_t < I, Us... >& get ( const tuple< Us... >& ) noexcept ;
413
413
414
414
template < std::size_t I, typename ... Us >
415
- friend TAO_TUPLE_CONSTEXPR TAO_TUPLE_CUDA_ANNOTATE_COMMON seq::type_by_index_t < I, Us... >& get ( tuple< Us... >& ) noexcept ;
415
+ friend TAO_TUPLE_CONSTEXPR TAO_TUPLE_CUDA_ANNOTATE_COMMON seq::at_index_t < I, Us... >& get ( tuple< Us... >& ) noexcept ;
416
416
417
417
template < std::size_t I, typename ... Us >
418
- friend TAO_TUPLE_CONSTEXPR TAO_TUPLE_CUDA_ANNOTATE_COMMON seq::type_by_index_t < I, Us... >&& get( tuple< Us... >&& ) noexcept ;
418
+ friend TAO_TUPLE_CONSTEXPR TAO_TUPLE_CUDA_ANNOTATE_COMMON seq::at_index_t < I, Us... >&& get( tuple< Us... >&& ) noexcept ;
419
419
420
420
public:
421
421
// 20.4.2.1 Construction [tuple.cnstr]
@@ -696,7 +696,7 @@ namespace tao
696
696
697
697
template < std::size_t I, typename ... Ts >
698
698
struct tuple_element < I, tuple< Ts... > >
699
- : seq::type_by_index < I, Ts... >
699
+ : seq::at_index < I, Ts... >
700
700
{
701
701
};
702
702
@@ -709,21 +709,21 @@ namespace tao
709
709
710
710
// get<I>
711
711
template < std::size_t I, typename ... Ts >
712
- TAO_TUPLE_CONSTEXPR TAO_TUPLE_CUDA_ANNOTATE_COMMON const seq::type_by_index_t < I, Ts... >& get ( const tuple< Ts... >& v ) noexcept
712
+ TAO_TUPLE_CONSTEXPR TAO_TUPLE_CUDA_ANNOTATE_COMMON const seq::at_index_t < I, Ts... >& get ( const tuple< Ts... >& v ) noexcept
713
713
{
714
- return static_cast < const impl::tuple_value< I, seq::type_by_index_t < I, Ts... > >& >( v.base ).get ();
714
+ return static_cast < const impl::tuple_value< I, seq::at_index_t < I, Ts... > >& >( v.base ).get ();
715
715
}
716
716
717
717
template < std::size_t I, typename ... Ts >
718
- TAO_TUPLE_CONSTEXPR TAO_TUPLE_CUDA_ANNOTATE_COMMON seq::type_by_index_t < I, Ts... >& get ( tuple< Ts... >& v ) noexcept
718
+ TAO_TUPLE_CONSTEXPR TAO_TUPLE_CUDA_ANNOTATE_COMMON seq::at_index_t < I, Ts... >& get ( tuple< Ts... >& v ) noexcept
719
719
{
720
- return static_cast < impl::tuple_value< I, seq::type_by_index_t < I, Ts... > >& >( v.base ).get ();
720
+ return static_cast < impl::tuple_value< I, seq::at_index_t < I, Ts... > >& >( v.base ).get ();
721
721
}
722
722
723
723
template < std::size_t I, typename ... Ts >
724
- TAO_TUPLE_CONSTEXPR TAO_TUPLE_CUDA_ANNOTATE_COMMON seq::type_by_index_t < I, Ts... >&& get( tuple< Ts... >&& v ) noexcept
724
+ TAO_TUPLE_CONSTEXPR TAO_TUPLE_CUDA_ANNOTATE_COMMON seq::at_index_t < I, Ts... >&& get( tuple< Ts... >&& v ) noexcept
725
725
{
726
- using type = seq::type_by_index_t < I, Ts... >;
726
+ using type = seq::at_index_t < I, Ts... >;
727
727
return static_cast < type&& >( static_cast < impl::tuple_value< I, type >& >( v.base ).get () );
728
728
}
729
729
@@ -931,7 +931,7 @@ namespace tao
931
931
template < std::size_t ... Os, std::size_t ... Is, typename ... Ts >
932
932
struct tuple_cat_result < seq::index_sequence< Os... >, seq::index_sequence< Is... >, Ts... >
933
933
{
934
- using type = tuple< typename tuple_element< Is, seq::type_by_index_t < Os, Ts... > >::type... >;
934
+ using type = tuple< typename tuple_element< Is, seq::at_index_t < Os, Ts... > >::type... >;
935
935
};
936
936
937
937
template < typename ... Ts >
0 commit comments