Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
3ef2f802
Commit
3ef2f802
authored
Apr 12, 2012
by
neverlord
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
maintenance
parent
d51e3d6a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
cppa/util/apply_tuple.hpp
cppa/util/apply_tuple.hpp
+6
-6
No files found.
cppa/util/apply_tuple.hpp
View file @
3ef2f802
...
...
@@ -42,8 +42,8 @@ namespace cppa { namespace util {
template
<
typename
Result
,
bool
IsManipulator
,
size_t
...
Range
>
struct
apply_tuple_impl
{
template
<
typename
F
,
template
<
typename
...
>
class
Tuple
,
typename
...
T
>
static
Result
apply
(
F
&
f
,
Tuple
<
T
...
>
const
&
args
)
template
<
typename
F
,
class
Tuple
>
static
inline
Result
apply
(
F
&
f
,
Tuple
const
&
args
)
{
return
f
(
get
<
Range
>
(
args
)...);
}
...
...
@@ -52,8 +52,8 @@ struct apply_tuple_impl
template
<
typename
Result
,
size_t
...
Range
>
struct
apply_tuple_impl
<
Result
,
true
,
Range
...
>
{
template
<
typename
F
,
template
<
typename
...
>
class
Tuple
,
typename
...
T
>
static
Result
apply
(
F
&
f
,
Tuple
<
T
...
>
&
args
)
template
<
typename
F
,
class
Tuple
>
static
inline
Result
apply
(
F
&
f
,
Tuple
&
args
)
{
return
f
(
get_ref
<
Range
>
(
args
)...);
}
...
...
@@ -133,8 +133,8 @@ template<typename Result, typename F,
template
<
typename
...
>
class
Tuple
,
typename
...
T
>
Result
unchecked_apply_tuple
(
F
&&
fun
,
Tuple
<
T
...
>
const
&
tup
)
{
return
unchecked_apply_tuple_in_range
<
Result
,
0
,
sizeof
...(
T
)
-
1
>
(
std
::
forward
<
F
>
(
fun
),
tup
);
return
apply_tuple_util
<
Result
,
false
,
0
,
sizeof
...(
T
)
-
1
>
::
apply
(
std
::
forward
<
F
>
(
fun
),
tup
);
}
// applies all values of @p tup to @p fun
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment