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:
parent
a2b368a7cc
commit
e3e130f58d
80 changed files with 255 additions and 255 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -16,6 +16,6 @@ namespace sprout {
|
|||
: std::domain_error("bad rational: zero denominator")
|
||||
{}
|
||||
};
|
||||
} // namespace sprout
|
||||
} // namespace sprout
|
||||
|
||||
#endif // SPROUT_RATIONAL_EXCEPTIONS_HPP
|
||||
|
|
|
@ -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 {
|
||||
//
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -213,6 +213,6 @@ namespace sprout {
|
|||
);
|
||||
}
|
||||
} // namespace detail
|
||||
} // namespace sprout
|
||||
} // namespace sprout
|
||||
|
||||
#endif // SPROUT_RATIONAL_RATIONAL_HPP
|
||||
|
|
|
@ -19,6 +19,6 @@ namespace sprout {
|
|||
)
|
||||
;
|
||||
}
|
||||
} // namespace sprout
|
||||
} // namespace sprout
|
||||
|
||||
#endif // SPROUT_RATIONAL_VALUES_HPP
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue