Skip to content
New issue

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

Improved performance of mp_is_set #100

Merged

Conversation

joaquintides
Copy link
Member

@joaquintides joaquintides commented Nov 8, 2024

Crude compile times on my local machine for this testing code:

#include <boost/mp11.hpp>
using namespace boost::mp11;

constexpr int N = 16;

using L1 = mp_iota_c<N>;
using L2 = mp_iota_c<N*2>;

template<class T> using Pr = mp_is_set<mp_push_back<L1, T>>;

using R = mp_count_if<L2, Pr>;

static_assert( R::value == N, "" );

int main()
{
}

imagen

@pdimov pdimov merged commit b06d0e4 into boostorg:develop Nov 9, 2024
80 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants