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

add variant/io

This commit is contained in:
bolero-MURAKAMI 2012-10-24 20:52:09 +09:00
parent 410a8af026
commit 5cb070b3b3
10 changed files with 403 additions and 244 deletions

View file

@ -5,24 +5,33 @@
namespace sprout {
namespace rel_ops {
//
// operator!=
//
template <typename T>
inline SPROUT_CONSTEXPR bool
operator!=(T const& x, T const& y) {
return !(x == y);
}
//
// operator>
//
template <typename T>
inline SPROUT_CONSTEXPR bool
operator>(T const& x, T const& y) {
return y < x;
}
//
// operator<=
//
template <typename T>
inline SPROUT_CONSTEXPR bool
operator<=(T const& x, T const& y) {
return !(y < x);
}
//
// operator>=
//
template <typename T>
inline SPROUT_CONSTEXPR bool
operator>=(T const& x, T const& y) {