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 <iostream> | |
#include <cstdlib> | |
int roll_dice(int numdice, int die) { | |
int total = 0; | |
for (int i = 0; i < numdice; i++) { | |
total += std::rand() % die; | |
} | |
return total; | |
} |
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
license: mit | |
border: yes | |
scrolling: yes |
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
license: apache-2.0 | |
scrolling: no | |
height: 1500 |
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
license: apache-2.0 | |
scrolling: yes | |
height: 900 | |
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 "variant/variant.hpp" | |
template<typename ...T> using variant = mapbox::util::variant<T...>; | |
namespace matchdetail { | |
template<typename C, typename Arg> | |
Arg lambda_argument(void(C::*)(const Arg&) const) {} | |
template<typename Other> | |
void lambda_argument(Other) {} |
NewerOlder