mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-12 14:54:10 +00:00
fix generator_iterator
fix random::begin, end add random::combine_copy
This commit is contained in:
parent
f40ee0a2ff
commit
10e9a7679d
4 changed files with 39 additions and 31 deletions
|
@ -280,13 +280,13 @@ namespace sprout {
|
|||
// generated_value
|
||||
//
|
||||
template<typename Engine, typename Distribution>
|
||||
inline SPROUT_CONSTEXPR typename sprout::random::random_result<Engine, Distribution>::result_type const&
|
||||
generated_value(sprout::random::random_result<Engine, Distribution> const& t) {
|
||||
inline typename sprout::random::random_result<Engine, Distribution>::result_type&
|
||||
generated_value(sprout::random::random_result<Engine, Distribution>& t) {
|
||||
return t.generated_value();
|
||||
}
|
||||
template<typename Engine, typename Distribution>
|
||||
inline typename sprout::random::random_result<Engine, Distribution>::result_type&
|
||||
generated_value(sprout::random::random_result<Engine, Distribution>& t) {
|
||||
inline SPROUT_CONSTEXPR typename sprout::random::random_result<Engine, Distribution>::result_type const&
|
||||
generated_value(sprout::random::random_result<Engine, Distribution> const& t) {
|
||||
return t.generated_value();
|
||||
}
|
||||
|
||||
|
@ -294,13 +294,13 @@ namespace sprout {
|
|||
// next_generator
|
||||
//
|
||||
template<typename Engine, typename Distribution>
|
||||
inline SPROUT_CONSTEXPR typename sprout::random::random_result<Engine, Distribution> const&
|
||||
next_generator(sprout::random::random_result<Engine, Distribution> const& t) {
|
||||
inline typename sprout::random::random_result<Engine, Distribution>&
|
||||
next_generator(sprout::random::random_result<Engine, Distribution>& t) {
|
||||
return t.next_generator();
|
||||
}
|
||||
template<typename Engine, typename Distribution>
|
||||
inline typename sprout::random::random_result<Engine, Distribution>&
|
||||
next_generator(sprout::random::random_result<Engine, Distribution>& t) {
|
||||
inline SPROUT_CONSTEXPR typename sprout::random::random_result<Engine, Distribution> const&
|
||||
next_generator(sprout::random::random_result<Engine, Distribution> const& t) {
|
||||
return t.next_generator();
|
||||
}
|
||||
} // namespace random
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue