mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-12 14:54:10 +00:00
distribution 修正
This commit is contained in:
parent
9255ad6808
commit
6e6c515704
7 changed files with 73 additions and 47 deletions
|
@ -26,9 +26,9 @@ namespace sprout {
|
|||
typedef uniform_01 distribution_type;
|
||||
public:
|
||||
template<typename Elem, typename Traits>
|
||||
friend std::basic_ostream<Elem, Traits>& operator>>(
|
||||
friend std::basic_istream<Elem, Traits>& operator>>(
|
||||
std::basic_istream<Elem, Traits>& lhs,
|
||||
param_type const& rhs
|
||||
param_type& rhs
|
||||
)
|
||||
{
|
||||
return lhs;
|
||||
|
@ -81,6 +81,8 @@ namespace sprout {
|
|||
);
|
||||
}
|
||||
public:
|
||||
SPROUT_CONSTEXPR explicit uniform_01()
|
||||
{}
|
||||
SPROUT_CONSTEXPR explicit uniform_01(param_type const& parm)
|
||||
{}
|
||||
SPROUT_CONSTEXPR result_type min() const {
|
||||
|
@ -99,9 +101,9 @@ namespace sprout {
|
|||
return generate(eng, eng());
|
||||
}
|
||||
template<typename Elem, typename Traits>
|
||||
friend std::basic_ostream<Elem, Traits>& operator>>(
|
||||
friend std::basic_istream<Elem, Traits>& operator>>(
|
||||
std::basic_istream<Elem, Traits>& lhs,
|
||||
uniform_01 const& rhs
|
||||
uniform_01& rhs
|
||||
)
|
||||
{
|
||||
return lhs;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue