Remove local mp_power_set implementation, as it's now in mp11

This commit is contained in:
Peter Dimov
2020-03-20 02:26:01 +02:00
parent 4b60dee4b6
commit f3b3b533aa
2 changed files with 0 additions and 44 deletions

View File

@ -14,28 +14,6 @@
#include <boost/mp11.hpp>
using namespace boost::mp11;
// mp_power_set<L>
template<class L> struct mp_power_set_impl;
template<class L> using mp_power_set = typename mp_power_set_impl<L>::type;
template<template<class...> class L> struct mp_power_set_impl< L<> >
{
using type = L< L<> >;
};
template<template<class...> class L, class T1, class... T> struct mp_power_set_impl< L<T1, T...> >
{
using S1 = mp_power_set< L<T...> >;
template<class L2> using _f = mp_push_front<L2, T1>;
using S2 = mp_transform<_f, S1>;
using type = mp_append< S1, S2 >;
};
//
using namespace boost::variant2;

View File

@ -14,28 +14,6 @@
#include <boost/mp11.hpp>
using namespace boost::mp11;
// mp_power_set<L>
template<class L> struct mp_power_set_impl;
template<class L> using mp_power_set = typename mp_power_set_impl<L>::type;
template<template<class...> class L> struct mp_power_set_impl< L<> >
{
using type = L< L<> >;
};
template<template<class...> class L, class T1, class... T> struct mp_power_set_impl< L<T1, T...> >
{
using S1 = mp_power_set< L<T...> >;
template<class L2> using _f = mp_push_front<L2, T1>;
using S2 = mp_transform<_f, S1>;
using type = mp_append< S1, S2 >;
};
//
struct D