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
492673e1
Commit
492673e1
authored
Apr 02, 2013
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added ctor to partial funs taking `match_expr`s
parent
529dd56f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
cppa/partial_function.hpp
cppa/partial_function.hpp
+5
-5
No files found.
cppa/partial_function.hpp
View file @
492673e1
...
...
@@ -79,8 +79,8 @@ class partial_function {
partial_function
&
operator
=
(
partial_function
&&
)
=
default
;
partial_function
&
operator
=
(
const
partial_function
&
)
=
default
;
template
<
typename
...
Cs
>
partial_function
(
const
match_expr
<
Cs
...
>&
mexpr
);
template
<
typename
...
Cs
,
typename
...
Ts
>
partial_function
(
const
match_expr
<
Cs
...
>&
mexpr
,
const
Ts
&
...
args
);
/**
* @brief Returns @p true if this partial function is defined for the
...
...
@@ -141,9 +141,9 @@ match_expr_convert(const T0& arg0, const T1& arg1, const Ts&... args) {
* inline and template member function implementations *
******************************************************************************/
template
<
typename
...
Cs
>
partial_function
::
partial_function
(
const
match_expr
<
Cs
...
>&
mexpr
)
:
m_impl
(
mexpr
.
as_behavior_impl
(
))
{
}
template
<
typename
...
Cs
,
typename
...
Ts
>
partial_function
::
partial_function
(
const
match_expr
<
Cs
...
>&
arg
,
const
Ts
&
...
args
)
:
m_impl
(
detail
::
match_expr_concat
(
arg
,
args
...
))
{
}
inline
bool
partial_function
::
defined_at
(
const
any_tuple
&
value
)
{
return
(
m_impl
)
&&
m_impl
->
defined_at
(
value
);
...
...
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