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
68541ef9
Commit
68541ef9
authored
Apr 02, 2013
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added std::function typedefs for convenience
parent
f40c9f16
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
cppa/util/callable_trait.hpp
cppa/util/callable_trait.hpp
+5
-0
No files found.
cppa/util/callable_trait.hpp
View file @
68541ef9
...
...
@@ -31,6 +31,7 @@
#ifndef CPPA_UTIL_CALLABLE_TRAIT
#define CPPA_UTIL_CALLABLE_TRAIT
#include <functional>
#include <type_traits>
#include "cppa/util/rm_ref.hpp"
...
...
@@ -46,6 +47,7 @@ template<class C, typename Result, typename... Ts>
struct
callable_trait
<
Result
(
C
::*
)(
Ts
...)
const
>
{
typedef
Result
result_type
;
typedef
type_list
<
Ts
...
>
arg_types
;
typedef
std
::
function
<
Result
(
Ts
...)
>
fun_type
;
};
// member function pointer
...
...
@@ -53,6 +55,7 @@ template<class C, typename Result, typename... Ts>
struct
callable_trait
<
Result
(
C
::*
)(
Ts
...)
>
{
typedef
Result
result_type
;
typedef
type_list
<
Ts
...
>
arg_types
;
typedef
std
::
function
<
Result
(
Ts
...)
>
fun_type
;
};
// good ol' function
...
...
@@ -60,6 +63,7 @@ template<typename Result, typename... Ts>
struct
callable_trait
<
Result
(
Ts
...)
>
{
typedef
Result
result_type
;
typedef
type_list
<
Ts
...
>
arg_types
;
typedef
std
::
function
<
Result
(
Ts
...)
>
fun_type
;
};
// good ol' function pointer
...
...
@@ -67,6 +71,7 @@ template<typename Result, typename... Ts>
struct
callable_trait
<
Result
(
*
)(
Ts
...)
>
{
typedef
Result
result_type
;
typedef
type_list
<
Ts
...
>
arg_types
;
typedef
std
::
function
<
Result
(
Ts
...)
>
fun_type
;
};
// matches (IsFun || IsMemberFun)
...
...
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