Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
actor-incubator
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
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-incubator
Commits
0a48db2b
Commit
0a48db2b
authored
Mar 08, 2019
by
Hauke Goldhammer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change abstract policy to an integer example policy
parent
cb66aed0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
libcaf_bb/caf/bb/stream_reader.hpp
libcaf_bb/caf/bb/stream_reader.hpp
+4
-4
No files found.
libcaf_bb/caf/bb/stream_reader.hpp
View file @
0a48db2b
...
...
@@ -33,14 +33,14 @@ namespace bb {
using
file_name
=
std
::
string
;
/// @relates
file-
reader
/// The Policy defines how the
file-
reader pares a line of the given file.
class
Policy
{
/// @relates
stream_
reader
/// The Policy defines how the
stream_
reader pares a line of the given file.
class
Interger
Policy
{
public:
using
value_type
=
int
;
/// Returns number of produced elements or an error.
expected
<
size_t
>
operator
()(
std
::
string
line
,
downstream
<
value_type
>
out
)
{
expected
<
size_t
>
operator
()(
std
::
string
&
line
,
downstream
<
value_type
>
out
)
{
std
::
vector
<
std
::
string
>
tokens
;
split
(
tokens
,
line
,
' '
);
for
(
auto
&
token
:
tokens
)
...
...
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