1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2025-08-03 12:49:50 +00:00

add sprout/bitset.hpp

This commit is contained in:
bolero-MURAKAMI 2012-06-17 19:14:38 +09:00
parent 955561e36c
commit a2888b19bb
10 changed files with 1457 additions and 32 deletions

View file

@ -131,10 +131,10 @@ namespace sprout {
{
return lhs << rhs.t_ << " " << rhs.p_;
}
SPROUT_CONSTEXPR friend bool operator==(param_type const& lhs, param_type const& rhs) {
friend SPROUT_CONSTEXPR bool operator==(param_type const& lhs, param_type const& rhs) {
return lhs.t_ == rhs.t_ && lhs.p_ == rhs.p_;
}
SPROUT_CONSTEXPR friend bool operator!=(param_type const& lhs, param_type const& rhs) {
friend SPROUT_CONSTEXPR bool operator!=(param_type const& lhs, param_type const& rhs) {
return !(lhs == rhs);
}
};
@ -442,10 +442,10 @@ namespace sprout {
{
return lhs << rhs.param();
}
SPROUT_CONSTEXPR friend bool operator==(binomial_distribution const& lhs, binomial_distribution const& rhs) {
friend SPROUT_CONSTEXPR bool operator==(binomial_distribution const& lhs, binomial_distribution const& rhs) {
return lhs.param() == rhs.param();
}
SPROUT_CONSTEXPR friend bool operator!=(binomial_distribution const& lhs, binomial_distribution const& rhs) {
friend SPROUT_CONSTEXPR bool operator!=(binomial_distribution const& lhs, binomial_distribution const& rhs) {
return !(lhs == rhs);
}
};