We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@jfalcou - can you implement filter? or what do you think?
The text was updated successfully, but these errors were encountered:
// filter types with predicate template<template<typename> typename Pred, typename Type> struct filter { template<typename... Ls> static constexpr types<Ls...> tuple_to_types(const std::tuple<Ls...>&); template<typename T> static constexpr std::conditional_t<Pred<T>::value, std::tuple<T>, std::tuple<>> filter_type(); template<typename... Ls> static constexpr auto filter_impl(types<Ls...>) { return tuple_to_types(std::tuple_cat(filter_type<Ls>()...)); } using type = decltype(filter_impl(Type {})); };
Sorry, something went wrong.
No branches or pull requests
@jfalcou - can you implement filter? or what do you think?
The text was updated successfully, but these errors were encountered: