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
68e0e638
Commit
68e0e638
authored
Apr 06, 2018
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move match_elements with type_list to public
parent
7c54a6ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
libcaf_core/caf/type_erased_tuple.hpp
libcaf_core/caf/type_erased_tuple.hpp
+3
-1
No files found.
libcaf_core/caf/type_erased_tuple.hpp
View file @
68e0e638
...
...
@@ -189,17 +189,19 @@ public:
return
apply
(
fun
,
result_token
,
args_token
);
}
private:
/// @private
template
<
class
T
,
class
...
Ts
>
bool
match_elements
(
detail
::
type_list
<
T
,
Ts
...
>
)
const
noexcept
{
detail
::
meta_elements
<
detail
::
type_list
<
T
,
Ts
...
>>
xs
;
return
detail
::
try_match
(
*
this
,
&
xs
.
arr
[
0
],
1
+
sizeof
...(
Ts
));
}
/// @private
inline
bool
match_elements
(
detail
::
type_list
<>
)
const
noexcept
{
return
empty
();
}
private:
template
<
class
F
,
class
R
,
class
...
Ts
>
optional
<
R
>
apply
(
F
&
fun
,
detail
::
type_list
<
R
>
,
detail
::
type_list
<
Ts
...
>
tk
)
{
...
...
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