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
e2441fcc
Commit
e2441fcc
authored
Oct 01, 2014
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Coding style nitpicks
parent
489a24e1
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
137 additions
and
131 deletions
+137
-131
libcaf_core/caf/detail/int_list.hpp
libcaf_core/caf/detail/int_list.hpp
+8
-9
libcaf_core/caf/match_expr.hpp
libcaf_core/caf/match_expr.hpp
+124
-117
libcaf_core/caf/on.hpp
libcaf_core/caf/on.hpp
+5
-5
No files found.
libcaf_core/caf/detail/int_list.hpp
View file @
e2441fcc
...
@@ -51,11 +51,10 @@ template <class List, size_t N>
...
@@ -51,11 +51,10 @@ template <class List, size_t N>
struct
il_right
;
struct
il_right
;
template
<
long
...
Is
,
size_t
N
>
template
<
long
...
Is
,
size_t
N
>
struct
il_right
<
int_list
<
Is
...
>
,
N
>
:
il_right_impl
<
(
N
>
sizeof
...(
Is
)
struct
il_right
<
int_list
<
Is
...
>
,
N
>
{
?
sizeof
...(
Is
)
using
type
=
typename
il_right_impl
<
(
N
>
sizeof
...(
Is
)
?
sizeof
...(
Is
)
:
N
),
:
N
),
sizeof
...(
Is
),
Is
...
>::
type
;
sizeof
...(
Is
),
};
Is
...
>
{
};
/**
/**
* Creates indices for `List` beginning at `Pos`.
* Creates indices for `List` beginning at `Pos`.
...
@@ -84,13 +83,13 @@ struct il_indices<List<T0, Ts...>, Pos, int_list<Is...>> {
...
@@ -84,13 +83,13 @@ struct il_indices<List<T0, Ts...>, Pos, int_list<Is...>> {
};
};
template
<
class
T
>
template
<
class
T
>
constexpr
auto
get_indices
(
const
T
&
)
->
typename
il_indices
<
T
>::
type
{
typename
il_indices
<
T
>::
type
get_indices
(
const
T
&
)
{
return
{};
return
{};
}
}
template
<
size_t
Num
,
typename
T
>
template
<
size_t
Num
,
class
T
>
constexpr
auto
get_right_indices
(
const
T
&
)
typename
il_right
<
typename
il_indices
<
T
>::
type
,
Num
>::
type
->
typename
il_right
<
typename
il_indices
<
T
>::
type
,
Num
>::
type
{
get_right_indices
(
const
T
&
)
{
return
{};
return
{};
}
}
...
...
libcaf_core/caf/match_expr.hpp
View file @
e2441fcc
This diff is collapsed.
Click to expand it.
libcaf_core/caf/on.hpp
View file @
e2441fcc
...
@@ -312,21 +312,21 @@ std::function<optional<T>(const T&)> guarded(Predicate p, T value) {
...
@@ -312,21 +312,21 @@ std::function<optional<T>(const T&)> guarded(Predicate p, T value) {
// special case covering arg_match as argument to guarded()
// special case covering arg_match as argument to guarded()
template
<
class
T
,
typename
Predicate
>
template
<
class
T
,
typename
Predicate
>
unit_t
guarded
(
Predicate
,
const
detail
::
wrapped
<
T
>&
)
{
unit_t
guarded
(
Predicate
,
const
detail
::
wrapped
<
T
>&
)
{
return
{}
;
return
unit
;
}
}
inline
unit_t
to_guard
(
const
anything
&
)
{
inline
unit_t
to_guard
(
const
anything
&
)
{
return
{}
;
return
unit
;
}
}
template
<
class
T
>
template
<
class
T
>
unit_t
to_guard
(
detail
::
wrapped
<
T
>
(
*
)())
{
unit_t
to_guard
(
detail
::
wrapped
<
T
>
(
*
)())
{
return
{}
;
return
unit
;
}
}
template
<
class
T
>
template
<
class
T
>
unit_t
to_guard
(
const
detail
::
wrapped
<
T
>&
)
{
unit_t
to_guard
(
const
detail
::
wrapped
<
T
>&
)
{
return
{}
;
return
unit
;
}
}
template
<
class
T
>
template
<
class
T
>
...
@@ -385,7 +385,7 @@ decltype(on(A0, A1, A2, val<Ts>()...)) on() {
...
@@ -385,7 +385,7 @@ decltype(on(A0, A1, A2, val<Ts>()...)) on() {
}
}
template
<
atom_value
A0
,
atom_value
A1
,
atom_value
A2
,
atom_value
A3
,
template
<
atom_value
A0
,
atom_value
A1
,
atom_value
A2
,
atom_value
A3
,
class
...
Ts
>
class
...
Ts
>
decltype
(
on
(
A0
,
A1
,
A2
,
A3
,
val
<
Ts
>
()...))
on
()
{
decltype
(
on
(
A0
,
A1
,
A2
,
A3
,
val
<
Ts
>
()...))
on
()
{
return
on
(
A0
,
A1
,
A2
,
A3
,
val
<
Ts
>
()...);
return
on
(
A0
,
A1
,
A2
,
A3
,
val
<
Ts
>
()...);
}
}
...
...
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