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:
parent
410a8af026
commit
5cb070b3b3
10 changed files with 403 additions and 244 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue