Sacado Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Sacado_mpl_vector_at_spec.hpp
Go to the documentation of this file.
1 // @HEADER
2 // *****************************************************************************
3 // Sacado Package
4 //
5 // Copyright 2006 NTESS and the Sacado contributors.
6 // SPDX-License-Identifier: LGPL-2.1-or-later
7 // *****************************************************************************
8 // @HEADER
9 
10 #ifndef SCADO_MPL_VECTOR_AT_SPEC_HPP
11 #define SCADO_MPL_VECTOR_AT_SPEC_HPP
12 
13 namespace Sacado {
14 
15  namespace mpl {
16 
17  template <class Vector, int Pos> struct vector_at {};
18 
19  template <typename T, typename...Args>
20  struct vector_at<mpl::vector<T,Args...>, 0> {
21  typedef T type;
22  };
23 
24  template <typename T, typename...Args, int Pos>
25  struct vector_at<mpl::vector<T,Args...>, Pos> {
26  typedef typename vector_at<mpl::vector<Args...>, Pos-1>::type type;
27  };
28 
29  }
30 
31 }
32 
33 #endif // SCADO_MPL_VECTOR_AT_SPEC_HPP
#define T
Definition: Sacado_rad.hpp:553
vector_at< mpl::vector< Args...>, Pos-1 >::type type