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
4d67fb53
Commit
4d67fb53
authored
Apr 12, 2017
by
Matthias Vallentin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bring back lost meta function
parent
e7c9dcf5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
libcaf_core/caf/detail/type_list.hpp
libcaf_core/caf/detail/type_list.hpp
+7
-2
No files found.
libcaf_core/caf/detail/type_list.hpp
View file @
4d67fb53
...
@@ -501,7 +501,7 @@ struct tl_binary_forall {
...
@@ -501,7 +501,7 @@ struct tl_binary_forall {
// Uncomment after having switched to C++14
// Uncomment after having switched to C++14
//template <class ListA, class ListB, template <class, class> class Pred>
//template <class ListA, class ListB, template <class, class> class Pred>
//inline constexpr bool tl_binary_forall_v
//inline constexpr bool tl_binary_forall_v
// = tl_binary_forall<ListA, ListB, Pred>::value;
// = tl_binary_forall<ListA, ListB, Pred>::value;
/// Tests whether a predicate holds for some of the elements of a list.
/// Tests whether a predicate holds for some of the elements of a list.
...
@@ -511,6 +511,11 @@ struct tl_exists {
...
@@ -511,6 +511,11 @@ struct tl_exists {
Pred
<
tl_head_t
<
List
>>::
value
||
tl_exists
<
tl_tail_t
<
List
>
,
Pred
>::
value
;
Pred
<
tl_head_t
<
List
>>::
value
||
tl_exists
<
tl_tail_t
<
List
>
,
Pred
>::
value
;
};
};
template
<
template
<
class
>
class
Pred
>
struct
tl_exists
<
empty_type_list
,
Pred
>
{
static
constexpr
bool
value
=
false
;
};
// Uncomment after having switched to C++14
// Uncomment after having switched to C++14
//template <class List, template <class> class Pred>
//template <class List, template <class> class Pred>
//inline constexpr bool tl_exists_v = tl_exists<List, Pred>::value;
//inline constexpr bool tl_exists_v = tl_exists<List, Pred>::value;
...
@@ -733,7 +738,7 @@ struct tl_replace_back<type_list<T>, Back, type_list<Us...>> {
...
@@ -733,7 +738,7 @@ struct tl_replace_back<type_list<T>, Back, type_list<Us...>> {
};
};
template
<
class
List
,
class
Back
,
class
Intermediate
=
type_list
<
>
>
template
<
class
List
,
class
Back
,
class
Intermediate
=
type_list
<
>
>
using
tl_replace_back_t
using
tl_replace_back_t
=
typename
tl_replace_back
<
List
,
Back
,
Intermediate
>::
type
;
=
typename
tl_replace_back
<
List
,
Back
,
Intermediate
>::
type
;
// type at(size_t)
// type at(size_t)
...
...
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