1//===----------------------------------------------------------------------===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is dual licensed under the MIT and the University of Illinois Open 6// Source Licenses. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// 9 10// <random> 11 12// template<class Engine, size_t k> 13// class shuffle_order_engine 14// { 15// public: 16// // types 17// typedef typename Engine::result_type result_type; 18// 19// // engine characteristics 20// static constexpr size_t table_size = k; 21// static constexpr result_type min() { return Engine::min; } 22// static constexpr result_type max() { return Engine::max; } 23 24#include <random> 25#include <type_traits> 26#include <cassert> 27 28template <class _Tp> 29void where(const _Tp &) {} 30 31void 32test1() 33{ 34 typedef std::knuth_b E; 35 static_assert(E::table_size == 256, ""); 36 /*static_*/assert((E::min() == 1)/*, ""*/); 37 /*static_*/assert((E::max() == 2147483646)/*, ""*/); 38 where(E::table_size); 39} 40 41int main() 42{ 43 test1(); 44} 45