You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rngxx/src/test/test.cpp

18 lines
247 B

#include <fmt/format.h>
#include <rngxx.hpp>
#include <rngxx/crand.h>
void iter(Random& rng)
{
for(auto&& i : rng.iter<int>())
fmt::print("{} ", i);
}
extern "C" {
void cpp_test()
{
auto random = new rng::crand(100);
iter(random);
}
}