Midge  v3.9.2
Data Processing Framework
typerename.hh
Go to the documentation of this file.
1 /*
2  * typerename.hh
3  *
4  * Created on: Dec 15, 2018
5  * Author: N.S. Oblath
6  */
7 
8 #ifndef MIDGE_TYPERENAME_HH_
9 #define MIDGE_TYPERENAME_HH_
10 
11 namespace midge
12 {
13 
14  template< class x_a, template<class...> class x_b > struct type_rename_impl;
15 
16  template< template<class...> class x_a, class... x_types, template<class...> class x_b >
17  struct type_rename_impl< x_a< x_types... >, x_b >
18  {
19  using type = x_b< x_types... >;
20  };
21 
23  template< class x_a, template<class...> class x_b >
25 
26 }
27 
28 #endif /* MIDGE_TYPERENAME_HH_ */
Definition: _buffer.hh:11
typename type_rename_impl< x_a, x_b >::type type_rename
Replaces type A with type B; e.g. type_rename<type_list<int, float>, std::pair> –> std::pair<int...
Definition: typerename.hh:24