1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2025-10-05 13:00:00 +00:00

fix coding styles

This commit is contained in:
bolero-MURAKAMI 2013-03-22 14:24:19 +09:00
commit e3e130f58d
80 changed files with 255 additions and 255 deletions

View file

@ -253,6 +253,6 @@ namespace sprout {
operator/(typename sprout::rational<IntType>::param_type lhs, sprout::rational<IntType> const& rhs) {
return sprout::rational<IntType>(lhs) / rhs;
}
} // namespace sprout
} // namespace sprout
#endif // SPROUT_RATIONAL_ARITHMETIC_HPP

View file

@ -191,6 +191,6 @@ namespace sprout {
operator>=(typename sprout::rational<IntType>::param_type lhs, sprout::rational<IntType> const& rhs) {
return !(lhs < rhs);
}
} // namespace sprout
} // namespace sprout
#endif // SPROUT_RATIONAL_COMPARISON_HPP

View file

@ -13,6 +13,6 @@ namespace sprout {
rational_cast(sprout::rational<IntType> const& src) {
return static_cast<T>(src.numerator()) / static_cast<T>(src.denominator());
}
} // namespace sprout
} // namespace sprout
#endif // SPROUT_RATIONAL_CONVERSION_HPP

View file

@ -16,6 +16,6 @@ namespace sprout {
: std::domain_error("bad rational: zero denominator")
{}
};
} // namespace sprout
} // namespace sprout
#endif // SPROUT_RATIONAL_EXCEPTIONS_HPP

View file

@ -16,7 +16,7 @@ namespace sprout {
hash_value(sprout::rational<T> const& v) {
return sprout::hash_values(v.numerator(), v.denominator());
}
} // namespace sprout
} // namespace sprout
namespace std {
//

View file

@ -36,6 +36,6 @@ namespace sprout {
operator<<(std::basic_ostream<Elem, Traits>& lhs, sprout::rational<IntType> const& rhs) {
return lhs << rhs.numerator() << Elem('/') << rhs.denominator();
}
} // namespace sprout
} // namespace sprout
#endif // SPROUT_RATIONAL_IO_HPP

View file

@ -213,6 +213,6 @@ namespace sprout {
);
}
} // namespace detail
} // namespace sprout
} // namespace sprout
#endif // SPROUT_RATIONAL_RATIONAL_HPP

View file

@ -19,6 +19,6 @@ namespace sprout {
)
;
}
} // namespace sprout
} // namespace sprout
#endif // SPROUT_RATIONAL_VALUES_HPP