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
757009ec
Commit
757009ec
authored
Sep 05, 2013
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added tl_right meta function
parent
3e1f442d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
cppa/util/type_list.hpp
cppa/util/type_list.hpp
+15
-0
No files found.
cppa/util/type_list.hpp
View file @
757009ec
...
@@ -844,6 +844,21 @@ struct tl_is_distinct {
...
@@ -844,6 +844,21 @@ struct tl_is_distinct {
tl_size
<
L
>::
value
==
tl_size
<
typename
tl_distinct
<
L
>::
type
>::
value
;
tl_size
<
L
>::
value
==
tl_size
<
typename
tl_distinct
<
L
>::
type
>::
value
;
};
};
/**
* @brief Creates a new list containing the last @p N elements.
*/
template
<
class
List
,
size_t
N
>
struct
tl_right
{
static
constexpr
size_t
list_size
=
tl_size
<
List
>::
value
;
static
constexpr
size_t
first_idx
=
(
list_size
>
N
)
?
(
list_size
-
N
)
:
0
;
typedef
typename
tl_slice
<
List
,
first_idx
,
list_size
>::
type
type
;
};
template
<
size_t
N
>
struct
tl_right
<
empty_type_list
,
N
>
{
typedef
empty_type_list
type
;
};
// list resize(list, size, fill_type)
// list resize(list, size, fill_type)
template
<
class
List
,
bool
OldSizeLessNewSize
,
template
<
class
List
,
bool
OldSizeLessNewSize
,
...
...
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