Created
January 21, 2016 20:35
-
-
Save cjhanks/8126dc64c785482d6e79 to your computer and use it in GitHub Desktop.
I can trull
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cmath> | |
#include <algorithm> | |
#include <iostream> | |
#include <tuple> | |
#include <vector> | |
int | |
main() | |
{ | |
using namespace std; | |
vector<tuple<int, int>> data; | |
size_t i = 0; | |
generate_n(back_inserter(data), | |
pow(4, 11), | |
[&i]() { ++i; return make_tuple(i, i); }); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Wacky. C++11?