Click here to Skip to main content
15,891,713 members
Articles / Programming Languages / C++11

Compile Time Loops with C++11 - Creating a Generalized static_for Implementation

Rate me:
Please Sign up or sign in to vote.
4.80/5 (15 votes)
28 Dec 2014CPOL11 min read 46.7K   200   19  
Have you ever been working with templates or constexpr and wanted to run a loop? Or maybe you have a loop you'd like to unroll and see if your program will run faster? Welcome to static_for.

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect Zed Mind
Canada Canada
I love writing good code, and am currently spending my time working on a project I love.

I'm a yoga teacher, and enjoy the outdoors which I never seem to get enough of. Hopefully soon...

If you'd like, you can connect with me on Facebook.

Comments and Discussions