Midge  v3.9.2
Data Processing Framework
test_typeat.cc
Go to the documentation of this file.
1 #include "typeat.hh"
2 
3 #include <iostream>
4 
5 using namespace midge;
6 
7 using std::cout;
8 using std::endl;
9 
10 int main()
11 {
12  cout << "in an variadic template, type at position 1 of <char, short, int> should be <short>, and is: " << typeid(type_at< 1, char, short, int >).name() << endl;
13 
14  //cout << "in an type_list, type at position 1 of <char, short, int> should be <short>, and is: " << typeid(type_at< 1, type_list<char, short, int> >).name() << endl;
15 
16  return 0;
17 
18 }
Definition: _buffer.hh:11
typename type_at_impl< x_index, x_types... >::type type_at
Determines the type at position x_index within parameter pack x_types.
Definition: typeat.hh:34
int main()
Definition: test_typeat.cc:10