Skip to content

Commit 98cf872

Browse files
committed
chore: add sans-io server APIs
1 parent 7971eb2 commit 98cf872

12 files changed

Lines changed: 4680 additions & 0 deletions

File tree

include/boost/http_proto/detail/type_traits.hpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,18 @@ template<class T>
7070
using is_reference_wrapper =
7171
is_reference_wrapper_impl<remove_cvref_t<T>>;
7272

73+
template<class Base, class Derived>
74+
using derived_from = std::integral_constant<bool,
75+
std::is_base_of<Base, Derived>::value &&
76+
std::is_convertible<
77+
Derived const volatile*,
78+
Base const volatile*>::value>;
79+
80+
template<bool...> struct bool_pack {};
81+
template<bool... Bs>
82+
struct all_true : std::is_same<bool_pack<
83+
true, Bs...>, bool_pack<Bs..., true>> {};
84+
7385
} // detail
7486
} // http_proto
7587
} // boost

0 commit comments

Comments
 (0)