add ptr_fun, mem_fun, mem_fun_ref

This commit is contained in:
bolero-MURAKAMI 2012-04-11 23:28:29 +09:00
parent 4a8e938887
commit f86d17d0d4
46 changed files with 322 additions and 76 deletions

View file

@ -56,7 +56,7 @@ namespace sprout {
SPROUT_CONSTEXPR param_type()
: p_(RealType(0.5))
{}
SPROUT_CONSTEXPR explicit param_type(RealType p_arg)
explicit SPROUT_CONSTEXPR param_type(RealType p_arg)
: p_(arg_check(p_arg))
{}
SPROUT_CONSTEXPR RealType p() const {
@ -123,11 +123,11 @@ namespace sprout {
: p_(RealType(0.5))
, log_1mp_(init_log_1mp(RealType(0.5)))
{}
SPROUT_CONSTEXPR explicit geometric_distribution(RealType p_arg)
explicit SPROUT_CONSTEXPR geometric_distribution(RealType p_arg)
: p_(arg_check(p_arg))
, log_1mp_(init_log_1mp(p_arg))
{}
SPROUT_CONSTEXPR explicit geometric_distribution(param_type const& parm)
explicit SPROUT_CONSTEXPR geometric_distribution(param_type const& parm)
: p_(parm.p())
, log_1mp_(init_log_1mp(parm.p()))
{}