Commit ad110ffa authored by Andris Mednis's avatar Andris Mednis

Fix spelling: whether, ambiguous

parent 2cb70865
...@@ -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 whether `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;
......
...@@ -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 whether `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,
......
...@@ -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 whether `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 whether `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 whether `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 whether `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 whether `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 ambigious // picked for any U without requested member since `U::name` is not ambiguous
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 ambigious // picked for any U with requested member since `U::name` is ambiguous
static int fun(void*); static int fun(void*);
public: public:
......
...@@ -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 whether 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 whether 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 whether 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));
} }
......
...@@ -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 whether `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 whether 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 whether 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 whether 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 whether 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 whether 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 whether 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);
......
...@@ -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 whether 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;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment