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
cf5d947b
Commit
cf5d947b
authored
Aug 11, 2023
by
Shariar Azad Riday
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Integrate review feedback to add missing "inline"
parent
f41b5b90
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
libcaf_core/caf/actor_cast.hpp
libcaf_core/caf/actor_cast.hpp
+2
-2
libcaf_core/caf/detail/type_traits.hpp
libcaf_core/caf/detail/type_traits.hpp
+6
-6
libcaf_core/caf/detail/typed_actor_util.hpp
libcaf_core/caf/detail/typed_actor_util.hpp
+2
-2
No files found.
libcaf_core/caf/actor_cast.hpp
View file @
cf5d947b
...
@@ -48,9 +48,9 @@ struct is_weak_ptr {
...
@@ -48,9 +48,9 @@ struct is_weak_ptr {
static
constexpr
bool
value
=
T
::
has_weak_ptr_semantics
;
static
constexpr
bool
value
=
T
::
has_weak_ptr_semantics
;
};
};
/// Convenience alias for `is_weak_ptr
_v
`.
/// Convenience alias for `is_weak_ptr
<T>::value
`.
template
<
class
T
>
template
<
class
T
>
constexpr
bool
is_weak_ptr_v
=
is_weak_ptr
<
T
>::
value
;
inline
constexpr
bool
is_weak_ptr_v
=
is_weak_ptr
<
T
>::
value
;
template
<
class
T
>
template
<
class
T
>
struct
is_weak_ptr
<
T
*>
:
std
::
false_type
{};
struct
is_weak_ptr
<
T
*>
:
std
::
false_type
{};
...
...
libcaf_core/caf/detail/type_traits.hpp
View file @
cf5d947b
...
@@ -96,7 +96,7 @@ public:
...
@@ -96,7 +96,7 @@ public:
/// Convenience alias for `has_to_string<T>::value`.
/// Convenience alias for `has_to_string<T>::value`.
/// @relates has_to_string
/// @relates has_to_string
template
<
class
T
>
template
<
class
T
>
constexpr
bool
has_to_string_v
=
has_to_string
<
T
>::
value
;
inline
constexpr
bool
has_to_string_v
=
has_to_string
<
T
>::
value
;
template
<
bool
X
>
template
<
bool
X
>
using
bool_token
=
std
::
integral_constant
<
bool
,
X
>
;
using
bool_token
=
std
::
integral_constant
<
bool
,
X
>
;
...
@@ -184,7 +184,7 @@ public:
...
@@ -184,7 +184,7 @@ public:
/// Convenience alias for `is_comparable<T1, T2>::value`.
/// Convenience alias for `is_comparable<T1, T2>::value`.
template
<
class
T1
,
class
T2
>
template
<
class
T1
,
class
T2
>
constexpr
bool
is_comparable_v
=
is_comparable
<
T1
,
T2
>::
value
;
inline
constexpr
bool
is_comparable_v
=
is_comparable
<
T1
,
T2
>::
value
;
/// Checks whether `T` behaves like a forward iterator.
/// Checks whether `T` behaves like a forward iterator.
template
<
class
T
>
template
<
class
T
>
...
@@ -380,7 +380,7 @@ public:
...
@@ -380,7 +380,7 @@ public:
/// Convenience alias for `is_callable<T>::value`.
/// Convenience alias for `is_callable<T>::value`.
/// @relates is_callable
/// @relates is_callable
template
<
class
T
>
template
<
class
T
>
constexpr
bool
is_callable_v
=
is_callable
<
T
>::
value
;
inline
constexpr
bool
is_callable_v
=
is_callable
<
T
>::
value
;
/// Checks whether `F` is callable with arguments of types `Ts...`.
/// Checks whether `F` is callable with arguments of types `Ts...`.
template
<
class
F
,
class
...
Ts
>
template
<
class
F
,
class
...
Ts
>
...
@@ -468,7 +468,7 @@ struct is_handler_for {
...
@@ -468,7 +468,7 @@ struct is_handler_for {
/// Convenience alias for `is_handler_for<F, T>::value`.
/// Convenience alias for `is_handler_for<F, T>::value`.
template
<
class
F
,
class
T
>
template
<
class
F
,
class
T
>
constexpr
bool
is_handler_for_v
=
is_handler_for
<
F
,
T
>::
value
;
inline
constexpr
bool
is_handler_for_v
=
is_handler_for
<
F
,
T
>::
value
;
template
<
class
T
>
template
<
class
T
>
struct
value_type_of
{
struct
value_type_of
{
...
@@ -633,7 +633,7 @@ struct all_constructible<type_list<T, Ts...>, type_list<U, Us...>> {
...
@@ -633,7 +633,7 @@ struct all_constructible<type_list<T, Ts...>, type_list<U, Us...>> {
/// Convenience alias for `all_constructible<Ts, Us>::value`.
/// Convenience alias for `all_constructible<Ts, Us>::value`.
template
<
class
Ts
,
class
Us
>
template
<
class
Ts
,
class
Us
>
constexpr
bool
all_constructible_v
=
all_constructible
<
Ts
,
Us
>::
value
;
inline
constexpr
bool
all_constructible_v
=
all_constructible
<
Ts
,
Us
>::
value
;
/// Checks whether T behaves like `std::map`.
/// Checks whether T behaves like `std::map`.
template
<
class
T
>
template
<
class
T
>
...
@@ -995,7 +995,7 @@ public:
...
@@ -995,7 +995,7 @@ public:
/// Convenience alias for `accepts_opaque_value<Inspector, T>::value`.
/// Convenience alias for `accepts_opaque_value<Inspector, T>::value`.
template
<
class
Inspector
,
class
T
>
template
<
class
Inspector
,
class
T
>
constexpr
bool
accepts_opaque_value_v
inline
constexpr
bool
accepts_opaque_value_v
=
accepts_opaque_value
<
Inspector
,
T
>::
value
;
=
accepts_opaque_value
<
Inspector
,
T
>::
value
;
/// Checks whether `T` is primitive, i.e., either an arithmetic type or
/// Checks whether `T` is primitive, i.e., either an arithmetic type or
...
...
libcaf_core/caf/detail/typed_actor_util.hpp
View file @
cf5d947b
...
@@ -125,8 +125,8 @@ struct is_normalized_signature {
...
@@ -125,8 +125,8 @@ struct is_normalized_signature {
};
};
template
<
class
T
>
template
<
class
T
>
constexpr
bool
is_decayed
=
!
std
::
is_reference_v
<
T
>
&&
!
std
::
is_const_v
<
T
>
inline
constexpr
bool
is_decayed
&&
!
std
::
is_volatile_v
<
T
>
;
=
!
std
::
is_reference_v
<
T
>
&&
!
std
::
is_const_v
<
T
>
&&
!
std
::
is_volatile_v
<
T
>
;
template
<
class
...
Out
,
class
...
In
>
template
<
class
...
Out
,
class
...
In
>
struct
is_normalized_signature
<
result
<
Out
...
>
(
In
...)
>
{
struct
is_normalized_signature
<
result
<
Out
...
>
(
In
...)
>
{
...
...
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