Created
December 19, 2013 00:37
-
-
Save yohhoy/8032377 to your computer and use it in GitHub Desktop.
dump size of PRNG objects in C++11 Standard.
This file contains hidden or 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 <random> | |
#include <iostream> | |
int main() | |
{ | |
std::cout << | |
sizeof(std::size_t) << "\n" | |
"minstd_rand0 " << sizeof(std::minstd_rand0) << "\n" | |
"minstd_rand " << sizeof(std::minstd_rand) << "\n" | |
"mt19937 " << sizeof(std::mt19937) << "\n" | |
"mt19937_64 " << sizeof(std::mt19937_64) << "\n" | |
"ranlux24_base " << sizeof(std::ranlux24_base) << "\n" | |
"ranlux48_base " << sizeof(std::ranlux48_base) << "\n" | |
"ranlux24 " << sizeof(std::ranlux24) << "\n" | |
"ranlux48 " << sizeof(std::ranlux48) << "\n" | |
"knuth_b " << sizeof(std::knuth_b) << "\n" | |
<< std::flush; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://d.hatena.ne.jp/yohhoy/20131221/p1 (ja)