OSVR Framework (Internal Development Docs)
0.6-1962-g59773924
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
ApplyList.h
Go to the documentation of this file.
1
14
// Copyright 2015 Sensics, Inc.
15
// TypePack is part of OSVR-Core.
16
//
17
// Incorporates code from "meta":
18
// Copyright Eric Niebler 2014-2015
19
//
20
// Use, modification and distribution is subject to the
21
// Boost Software License, Version 1.0. (See accompanying
22
// file LICENSE_1_0.txt or copy at
23
// http://www.boost.org/LICENSE_1_0.txt)
24
//
25
// Project home: https://github.com/ericniebler/meta
26
//
27
28
#ifndef INCLUDED_ApplyList_h_GUID_9B48A805_89F9_48A8_3AC8_1C477B7328C7
29
#define INCLUDED_ApplyList_h_GUID_9B48A805_89F9_48A8_3AC8_1C477B7328C7
30
31
// Internal Includes
32
#include "
List.h
"
33
#include "
T.h
"
34
#include "
Apply.h
"
35
36
// Library/third-party includes
37
// - none
38
39
// Standard includes
40
// - none
41
42
namespace
osvr
{
43
namespace
typepack {
44
namespace
detail
{
46
template
<
typename
F,
typename
List>
struct
apply_list_
;
47
template
<
typename
F,
typename
... Args>
48
struct
apply_list_
<F,
list
<Args...>> {
49
// the simpler solution doesn't build with MSVC 2013
50
template
<
typename
...>
using
apply =
typepack::apply
<F, Args...>;
51
};
52
}
// namespace detail
53
55
template
<
typename
F,
typename
Args>
56
using
apply_list
=
apply<detail::apply_list_<F, Args>
>;
57
}
// namespace typepack
58
}
// namespace osvr
59
60
#endif // INCLUDED_ApplyList_h_GUID_9B48A805_89F9_48A8_3AC8_1C477B7328C7
Apply.h
Header.
osvr
<
Definition:
ClientInterfaceObjectManager.h:43
osvr::typepack::list
A wrapper for a template parameter pack of types.
Definition:
List.h:52
osvr::typepack::apply
typename F::template apply< Args...> apply
Apply an alias class.
Definition:
Apply.h:44
detail
Definition:
newuoa.h:1888
T.h
Header.
List.h
Header.
osvr::typepack::detail::apply_list_
General/dummy case.
Definition:
ApplyList.h:46
osvr::typepack::apply_list
apply< detail::apply_list_< F, Args >> apply_list
Apply an alias class, exploding the list of args.
Definition:
ApplyList.h:56
osvr
TypePack
ApplyList.h
Generated on Tue May 16 2017 15:22:21 for OSVR Framework (Internal Development Docs) by
Doxygen
1.8.8