mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
add bool_constant [N4334]
This commit is contained in:
parent
fbb95d9068
commit
a1f6d6ffc3
35 changed files with 198 additions and 106 deletions
|
@ -23,8 +23,7 @@ namespace sprout {
|
|||
{};
|
||||
template<typename Tup, std::size_t First, std::size_t Last>
|
||||
struct all_of_impl<Tup, First, Last, false>
|
||||
: public sprout::integral_constant<
|
||||
bool,
|
||||
: public sprout::bool_constant<
|
||||
sprout::tpp::detail::all_of_impl<Tup, First, (First + Last) / 2>::value
|
||||
&& sprout::tpp::detail::all_of_impl<Tup, (First + Last) / 2, Last>::value
|
||||
>
|
||||
|
@ -46,7 +45,7 @@ namespace sprout {
|
|||
//
|
||||
template<bool... Values>
|
||||
struct all_of_c
|
||||
: public sprout::tpp::all_of<sprout::integral_constant<bool, Values>...>
|
||||
: public sprout::tpp::all_of<sprout::bool_constant<Values>...>
|
||||
{};
|
||||
} // namespace tpp
|
||||
} // namespace sprout
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue