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
6dc89b27
Commit
6dc89b27
authored
Aug 05, 2023
by
Samir Halilcevic
Committed by
Dominik Charousset
Aug 10, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove can_apply type trait
parent
0f642844
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
18 deletions
+0
-18
libcaf_core/caf/detail/type_traits.hpp
libcaf_core/caf/detail/type_traits.hpp
+0
-18
No files found.
libcaf_core/caf/detail/type_traits.hpp
View file @
6dc89b27
...
@@ -820,24 +820,6 @@ public:
...
@@ -820,24 +820,6 @@ public:
static
constexpr
bool
value
=
sfinae_type
::
value
;
static
constexpr
bool
value
=
sfinae_type
::
value
;
};
};
template
<
class
T
,
class
Arg
>
struct
can_apply
{
template
<
class
U
>
static
auto
sfinae
(
U
*
x
)
->
decltype
(
CAF_IGNORE_UNUSED
(
x
->
apply
(
std
::
declval
<
Arg
>
())),
std
::
true_type
{});
template
<
class
U
>
static
auto
sfinae
(...)
->
std
::
false_type
;
using
type
=
decltype
(
sfinae
<
T
>
(
nullptr
));
static
constexpr
bool
value
=
type
::
value
;
};
template
<
class
T
,
class
Arg
>
constexpr
bool
can_apply_v
=
can_apply
<
T
,
Arg
>::
value
;
/// Evaluates to `true` for all types that specialize `std::tuple_size`, i.e.,
/// Evaluates to `true` for all types that specialize `std::tuple_size`, i.e.,
/// `std::tuple`, `std::pair`, and `std::array`.
/// `std::tuple`, `std::pair`, and `std::array`.
template
<
class
T
>
template
<
class
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