mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
fix algorithm: bogo_sort, bozo_sort
This commit is contained in:
parent
aace49ac65
commit
f3b405ad0f
75 changed files with 634 additions and 776 deletions
17
sprout/workaround/detail/uniform_int_distribution.hpp
Normal file
17
sprout/workaround/detail/uniform_int_distribution.hpp
Normal file
|
@ -0,0 +1,17 @@
|
|||
#ifndef SPROUT_WORKAROUND_DETAIL_UNIFORM_INT_DISTRIBUTION_HPP
|
||||
#define SPROUT_WORKAROUND_DETAIL_UNIFORM_INT_DISTRIBUTION_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#ifdef SPROUT_WORKAROUND_NOT_TERMINATE_RECURSIVE_CONSTEXPR_FUNCTION_TEMPLATE
|
||||
# include <sprout/random/uniform_smallint.hpp>
|
||||
#else
|
||||
# include <sprout/random/uniform_int_distribution.hpp>
|
||||
#endif
|
||||
|
||||
#ifdef SPROUT_WORKAROUND_NOT_TERMINATE_RECURSIVE_CONSTEXPR_FUNCTION_TEMPLATE
|
||||
# define SPROUT_WORKAROUND_DETAIL_UNIFORM_INT_DISTRIBUTION sprout::random::uniform_smallint
|
||||
#else
|
||||
# define SPROUT_WORKAROUND_DETAIL_UNIFORM_INT_DISTRIBUTION sprout::random::uniform_int_distribution
|
||||
#endif
|
||||
|
||||
#endif // #ifndef SPROUT_WORKAROUND_DETAIL_UNIFORM_INT_DISTRIBUTION_HPP
|
Loading…
Add table
Add a link
Reference in a new issue