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
ad110ffa
Commit
ad110ffa
authored
Nov 17, 2019
by
Andris Mednis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix spelling: whether, ambiguous
parent
2cb70865
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
20 deletions
+20
-20
libcaf_core/caf/detail/is_one_of.hpp
libcaf_core/caf/detail/is_one_of.hpp
+1
-1
libcaf_core/caf/detail/is_primitive_config_value.hpp
libcaf_core/caf/detail/is_primitive_config_value.hpp
+1
-1
libcaf_core/caf/detail/type_traits.hpp
libcaf_core/caf/detail/type_traits.hpp
+7
-7
libcaf_core/caf/intrusive/lifo_inbox.hpp
libcaf_core/caf/intrusive/lifo_inbox.hpp
+3
-3
libcaf_core/caf/spawn_options.hpp
libcaf_core/caf/spawn_options.hpp
+7
-7
libcaf_io/caf/io/basp/header.hpp
libcaf_io/caf/io/basp/header.hpp
+1
-1
No files found.
libcaf_core/caf/detail/is_one_of.hpp
View file @
ad110ffa
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
namespace
caf
::
detail
{
namespace
caf
::
detail
{
/// Checks wheter `T` is in the template parameter pack `Ts`.
/// Checks whet
h
er `T` is in the template parameter pack `Ts`.
template
<
class
T
,
class
...
Ts
>
template
<
class
T
,
class
...
Ts
>
struct
is_one_of
;
struct
is_one_of
;
...
...
libcaf_core/caf/detail/is_primitive_config_value.hpp
View file @
ad110ffa
...
@@ -39,7 +39,7 @@ enum class atom_value : uint64_t;
...
@@ -39,7 +39,7 @@ enum class atom_value : uint64_t;
namespace
caf
::
detail
{
namespace
caf
::
detail
{
/// Checks wheter `T` is in a primitive value type in `config_value`.
/// Checks whet
h
er `T` is in a primitive value type in `config_value`.
template
<
class
T
>
template
<
class
T
>
using
is_primitive_config_value
=
using
is_primitive_config_value
=
is_one_of
<
T
,
int64_t
,
bool
,
double
,
atom_value
,
timespan
,
std
::
string
,
is_one_of
<
T
,
int64_t
,
bool
,
double
,
atom_value
,
timespan
,
std
::
string
,
...
...
libcaf_core/caf/detail/type_traits.hpp
View file @
ad110ffa
...
@@ -226,7 +226,7 @@ public:
...
@@ -226,7 +226,7 @@ public:
static
constexpr
bool
value
=
std
::
is_same
<
bool
,
result_type
>::
value
;
static
constexpr
bool
value
=
std
::
is_same
<
bool
,
result_type
>::
value
;
};
};
/// Checks wheter `T` behaves like a forward iterator.
/// Checks whet
h
er `T` behaves like a forward iterator.
template
<
class
T
>
template
<
class
T
>
class
is_forward_iterator
{
class
is_forward_iterator
{
template
<
class
C
>
template
<
class
C
>
...
@@ -417,7 +417,7 @@ struct is_serializable<const T&> : is_serializable<T> {
...
@@ -417,7 +417,7 @@ struct is_serializable<const T&> : is_serializable<T> {
// nop
// nop
};
};
/// Checks wheter `T` is a non-const reference.
/// Checks whet
h
er `T` is a non-const reference.
template
<
class
T
>
template
<
class
T
>
struct
is_mutable_ref
:
std
::
false_type
{
};
struct
is_mutable_ref
:
std
::
false_type
{
};
...
@@ -524,7 +524,7 @@ struct get_callable_trait : get_callable_trait_helper<decay_t<T>> {};
...
@@ -524,7 +524,7 @@ struct get_callable_trait : get_callable_trait_helper<decay_t<T>> {};
template
<
class
T
>
template
<
class
T
>
using
get_callable_trait_t
=
typename
get_callable_trait
<
T
>::
type
;
using
get_callable_trait_t
=
typename
get_callable_trait
<
T
>::
type
;
/// Checks wheter `T` is a function or member function.
/// Checks whet
h
er `T` is a function or member function.
template
<
class
T
>
template
<
class
T
>
struct
is_callable
{
struct
is_callable
{
template
<
class
C
>
template
<
class
C
>
...
@@ -538,7 +538,7 @@ public:
...
@@ -538,7 +538,7 @@ public:
static
constexpr
bool
value
=
std
::
is_same
<
bool
,
result_type
>::
value
;
static
constexpr
bool
value
=
std
::
is_same
<
bool
,
result_type
>::
value
;
};
};
/// Checks wheter `F` is callable with arguments of types `Ts...`.
/// Checks whet
h
er `F` is callable with arguments of types `Ts...`.
template
<
class
F
,
class
...
Ts
>
template
<
class
F
,
class
...
Ts
>
struct
is_callable_with
{
struct
is_callable_with
{
template
<
class
U
>
template
<
class
U
>
...
@@ -552,7 +552,7 @@ struct is_callable_with {
...
@@ -552,7 +552,7 @@ struct is_callable_with {
static
constexpr
bool
value
=
type
::
value
;
static
constexpr
bool
value
=
type
::
value
;
};
};
/// Checks wheter `F` takes mutable references.
/// Checks whet
h
er `F` takes mutable references.
///
///
/// A manipulator is a functor that manipulates its arguments via
/// A manipulator is a functor that manipulates its arguments via
/// mutable references.
/// mutable references.
...
@@ -590,11 +590,11 @@ private:
...
@@ -590,11 +590,11 @@ private:
// no members
// no members
};
};
// picked for any U without requested member since `U::name` is not ambig
i
ous
// picked for any U without requested member since `U::name` is not ambig
u
ous
template
<
class
U
>
template
<
class
U
>
static
char
fun
(
U
*
,
decltype
(
U
::
name
)
*
=
nullptr
);
static
char
fun
(
U
*
,
decltype
(
U
::
name
)
*
=
nullptr
);
// picked for any U with requested member since `U::name` is ambig
i
ous
// picked for any U with requested member since `U::name` is ambig
u
ous
static
int
fun
(
void
*
);
static
int
fun
(
void
*
);
public:
public:
...
...
libcaf_core/caf/intrusive/lifo_inbox.hpp
View file @
ad110ffa
...
@@ -255,19 +255,19 @@ public:
...
@@ -255,19 +255,19 @@ public:
private:
private:
static
constexpr
pointer
stack_empty_tag
()
{
static
constexpr
pointer
stack_empty_tag
()
{
// We are *never* going to dereference the returned pointer. It is only
// We are *never* going to dereference the returned pointer. It is only
// used as indicator wheter this queue is empty or not.
// used as indicator whet
h
er this queue is empty or not.
return
static_cast
<
pointer
>
(
nullptr
);
return
static_cast
<
pointer
>
(
nullptr
);
}
}
pointer
stack_closed_tag
()
const
noexcept
{
pointer
stack_closed_tag
()
const
noexcept
{
// We are *never* going to dereference the returned pointer. It is only
// We are *never* going to dereference the returned pointer. It is only
// used as indicator wheter this queue is closed or not.
// used as indicator whet
h
er this queue is closed or not.
return
reinterpret_cast
<
pointer
>
(
reinterpret_cast
<
intptr_t
>
(
this
)
+
1
);
return
reinterpret_cast
<
pointer
>
(
reinterpret_cast
<
intptr_t
>
(
this
)
+
1
);
}
}
pointer
reader_blocked_tag
()
const
noexcept
{
pointer
reader_blocked_tag
()
const
noexcept
{
// We are *never* going to dereference the returned pointer. It is only
// We are *never* going to dereference the returned pointer. It is only
// used as indicator wheter the owner of the queue is currently waiting for
// used as indicator whet
h
er the owner of the queue is currently waiting for
// new messages.
// new messages.
return
reinterpret_cast
<
pointer
>
(
const_cast
<
lifo_inbox
*>
(
this
));
return
reinterpret_cast
<
pointer
>
(
const_cast
<
lifo_inbox
*>
(
this
));
}
}
...
...
libcaf_core/caf/spawn_options.hpp
View file @
ad110ffa
...
@@ -67,43 +67,43 @@ constexpr spawn_options hidden = spawn_options::hide_flag;
...
@@ -67,43 +67,43 @@ constexpr spawn_options hidden = spawn_options::hide_flag;
/// initialization until a message arrives.
/// initialization until a message arrives.
constexpr
spawn_options
lazy_init
=
spawn_options
::
lazy_init_flag
;
constexpr
spawn_options
lazy_init
=
spawn_options
::
lazy_init_flag
;
/// Checks wheter `haystack` contains `needle`.
/// Checks whet
h
er `haystack` contains `needle`.
/// @relates spawn_options
/// @relates spawn_options
constexpr
bool
has_spawn_option
(
spawn_options
haystack
,
spawn_options
needle
)
{
constexpr
bool
has_spawn_option
(
spawn_options
haystack
,
spawn_options
needle
)
{
return
(
static_cast
<
int
>
(
haystack
)
&
static_cast
<
int
>
(
needle
))
!=
0
;
return
(
static_cast
<
int
>
(
haystack
)
&
static_cast
<
int
>
(
needle
))
!=
0
;
}
}
/// Checks wheter the {@link detached} flag is set in `opts`.
/// Checks whet
h
er the {@link detached} flag is set in `opts`.
/// @relates spawn_options
/// @relates spawn_options
constexpr
bool
has_detach_flag
(
spawn_options
opts
)
{
constexpr
bool
has_detach_flag
(
spawn_options
opts
)
{
return
has_spawn_option
(
opts
,
detached
);
return
has_spawn_option
(
opts
,
detached
);
}
}
/// Checks wheter the {@link priority_aware} flag is set in `opts`.
/// Checks whet
h
er the {@link priority_aware} flag is set in `opts`.
/// @relates spawn_options
/// @relates spawn_options
constexpr
bool
has_priority_aware_flag
(
spawn_options
)
{
constexpr
bool
has_priority_aware_flag
(
spawn_options
)
{
return
true
;
return
true
;
}
}
/// Checks wheter the {@link hidden} flag is set in `opts`.
/// Checks whet
h
er the {@link hidden} flag is set in `opts`.
/// @relates spawn_options
/// @relates spawn_options
constexpr
bool
has_hide_flag
(
spawn_options
opts
)
{
constexpr
bool
has_hide_flag
(
spawn_options
opts
)
{
return
has_spawn_option
(
opts
,
hidden
);
return
has_spawn_option
(
opts
,
hidden
);
}
}
/// Checks wheter the {@link linked} flag is set in `opts`.
/// Checks whet
h
er the {@link linked} flag is set in `opts`.
/// @relates spawn_options
/// @relates spawn_options
constexpr
bool
has_link_flag
(
spawn_options
opts
)
{
constexpr
bool
has_link_flag
(
spawn_options
opts
)
{
return
has_spawn_option
(
opts
,
linked
);
return
has_spawn_option
(
opts
,
linked
);
}
}
/// Checks wheter the {@link monitored} flag is set in `opts`.
/// Checks whet
h
er the {@link monitored} flag is set in `opts`.
/// @relates spawn_options
/// @relates spawn_options
constexpr
bool
has_monitor_flag
(
spawn_options
opts
)
{
constexpr
bool
has_monitor_flag
(
spawn_options
opts
)
{
return
has_spawn_option
(
opts
,
monitored
);
return
has_spawn_option
(
opts
,
monitored
);
}
}
/// Checks wheter the {@link lazy_init} flag is set in `opts`.
/// Checks whet
h
er the {@link lazy_init} flag is set in `opts`.
/// @relates spawn_options
/// @relates spawn_options
constexpr
bool
has_lazy_init_flag
(
spawn_options
opts
)
{
constexpr
bool
has_lazy_init_flag
(
spawn_options
opts
)
{
return
has_spawn_option
(
opts
,
lazy_init
);
return
has_spawn_option
(
opts
,
lazy_init
);
...
...
libcaf_io/caf/io/basp/header.hpp
View file @
ad110ffa
...
@@ -96,7 +96,7 @@ inline bool is_handshake(const header& hdr) {
...
@@ -96,7 +96,7 @@ inline bool is_handshake(const header& hdr) {
||
hdr
.
operation
==
message_type
::
client_handshake
;
||
hdr
.
operation
==
message_type
::
client_handshake
;
}
}
/// Checks wheter given header contains a heartbeat.
/// Checks whet
h
er given header contains a heartbeat.
inline
bool
is_heartbeat
(
const
header
&
hdr
)
{
inline
bool
is_heartbeat
(
const
header
&
hdr
)
{
return
hdr
.
operation
==
message_type
::
heartbeat
;
return
hdr
.
operation
==
message_type
::
heartbeat
;
}
}
...
...
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