Nui
pick_first.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 namespace Nui::Detail
4 {
5  template <typename...>
6  struct PickFirst
7  {};
8 
9  template <typename T, typename... Ts>
10  struct PickFirst<T, Ts...>
11  {
12  using type = T;
13  };
14 
15  template <>
16  struct PickFirst<>
17  {
18  using type = void;
19  };
20 
21  template <typename... Ts>
22  using PickFirst_t = typename PickFirst<Ts...>::type;
23 }
Definition: rpc_hub.hpp:23
typename PickFirst< Ts... >::type PickFirst_t
Definition: pick_first.hpp:22
T type
Definition: pick_first.hpp:12
void type
Definition: pick_first.hpp:18
Definition: pick_first.hpp:7