Commit cf5d947b authored by Shariar Azad Riday's avatar Shariar Azad Riday

Integrate review feedback to add missing "inline"

parent f41b5b90
...@@ -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 {};
......
...@@ -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
......
...@@ -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...)> {
......
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