OSVR-Core
CoerceList.h
Go to the documentation of this file.
1 
11 // Copyright 2015 Sensics, Inc.
12 // TypePack is part of OSVR-Core.
13 //
14 // Use, modification and distribution is subject to the
15 // Boost Software License, Version 1.0. (See accompanying
16 // file LICENSE_1_0.txt or copy at
17 // http://www.boost.org/LICENSE_1_0.txt)
18 
19 #ifndef INCLUDED_CoerceList_h_GUID_9C85EF5E_4C36_41B6_C965_22CF8936CE04
20 #define INCLUDED_CoerceList_h_GUID_9C85EF5E_4C36_41B6_C965_22CF8936CE04
21 
22 // Internal Includes
23 #include "List.h"
24 #include "T.h"
25 
26 // Library/third-party includes
27 // - none
28 
29 // Standard includes
30 // - none
31 
32 namespace osvr {
33 namespace typepack {
34 
36  template <typename... Ts> using coerce_list = t_<list<Ts...>>;
37 
38 } // namespace typepack
39 } // namespace osvr
40 #endif // INCLUDED_CoerceList_h_GUID_9C85EF5E_4C36_41B6_C965_22CF8936CE04
The main namespace for all C++ elements of the framework, internal and external.
Definition: namespace_osvr.dox:3
A wrapper for a template parameter pack of types.
Definition: List.h:52
Header.
Header.
typename T::type t_
A convenience alias template to extract the nested type within the supplied T.
Definition: T.h:52
t_< list< Ts... >> coerce_list
Will turn whatever is passed into it into the simplest list.
Definition: CoerceList.h:36