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
86216d83
Commit
86216d83
authored
Apr 20, 2018
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow const batch references for sink handlers
parent
1f7bb7d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
libcaf_core/caf/stream_sink_trait.hpp
libcaf_core/caf/stream_sink_trait.hpp
+8
-0
No files found.
libcaf_core/caf/stream_sink_trait.hpp
View file @
86216d83
...
...
@@ -82,6 +82,14 @@ struct stream_sink_trait<void(State&, std::vector<In>&)>
using
process
=
detail
::
stream_sink_trait_invoke_all
;
};
/// Specializes the trait for batch-wise processing with const references.
template
<
class
State
,
class
In
>
struct
stream_sink_trait
<
void
(
State
&
,
const
std
::
vector
<
In
>&
)
>
:
stream_sink_trait_base
<
State
,
In
>
{
/// Defines a helper for dispatching to the processing function object.
using
process
=
detail
::
stream_sink_trait_invoke_all
;
};
// -- convenience alias --------------------------------------------------------
/// Derives a sink trait from the signatures of Fun and Fin.
...
...
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