mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
fix coding-stype
This commit is contained in:
parent
2012838899
commit
df3023db30
196 changed files with 2510 additions and 3945 deletions
|
@ -18,7 +18,8 @@ namespace sprout {
|
|||
namespace uuids {
|
||||
namespace detail {
|
||||
template<typename InputIterator>
|
||||
inline SPROUT_CONSTEXPR bool is_nil(InputIterator first, InputIterator last) {
|
||||
inline SPROUT_CONSTEXPR bool
|
||||
is_nil(InputIterator first, InputIterator last) {
|
||||
return first == last ? true
|
||||
: !*first && sprout::uuids::detail::is_nil(sprout::next(first), last)
|
||||
;
|
||||
|
@ -230,31 +231,44 @@ namespace sprout {
|
|||
// operator<=
|
||||
// operator>=
|
||||
//
|
||||
inline SPROUT_CONSTEXPR bool operator==(sprout::uuids::uuid const& lhs, sprout::uuids::uuid const& rhs) {
|
||||
return NS_SSCRISK_CEL_OR_SPROUT::equal(lhs.begin(), lhs.end(), rhs.begin());
|
||||
}
|
||||
inline SPROUT_CONSTEXPR bool operator!=(sprout::uuids::uuid const& lhs, sprout::uuids::uuid const& rhs) {
|
||||
return !(lhs == rhs);
|
||||
}
|
||||
inline SPROUT_CONSTEXPR bool operator<(sprout::uuids::uuid const& lhs, sprout::uuids::uuid const& rhs) {
|
||||
return NS_SSCRISK_CEL_OR_SPROUT::lexicographical_compare(lhs.begin(), lhs.end(), rhs.begin(), rhs.end());
|
||||
}
|
||||
inline SPROUT_CONSTEXPR bool operator>(sprout::uuids::uuid const& lhs, sprout::uuids::uuid const& rhs) {
|
||||
return rhs < lhs;
|
||||
}
|
||||
inline SPROUT_CONSTEXPR bool operator<=(sprout::uuids::uuid const& lhs, sprout::uuids::uuid const& rhs) {
|
||||
return !(rhs < lhs);
|
||||
}
|
||||
inline SPROUT_CONSTEXPR bool operator>=(sprout::uuids::uuid const& lhs, sprout::uuids::uuid const& rhs) {
|
||||
return !(lhs < rhs);
|
||||
}
|
||||
namespace {
|
||||
inline SPROUT_CONSTEXPR bool
|
||||
operator==(sprout::uuids::uuid const& lhs, sprout::uuids::uuid const& rhs) {
|
||||
return NS_SSCRISK_CEL_OR_SPROUT::equal(lhs.begin(), lhs.end(), rhs.begin());
|
||||
}
|
||||
inline SPROUT_CONSTEXPR bool
|
||||
operator!=(sprout::uuids::uuid const& lhs, sprout::uuids::uuid const& rhs) {
|
||||
return !(lhs == rhs);
|
||||
}
|
||||
inline SPROUT_CONSTEXPR bool
|
||||
operator<(sprout::uuids::uuid const& lhs, sprout::uuids::uuid const& rhs) {
|
||||
return NS_SSCRISK_CEL_OR_SPROUT::lexicographical_compare(lhs.begin(), lhs.end(), rhs.begin(), rhs.end());
|
||||
}
|
||||
inline SPROUT_CONSTEXPR bool
|
||||
operator>(sprout::uuids::uuid const& lhs, sprout::uuids::uuid const& rhs) {
|
||||
return rhs < lhs;
|
||||
}
|
||||
inline SPROUT_CONSTEXPR bool
|
||||
operator<=(sprout::uuids::uuid const& lhs, sprout::uuids::uuid const& rhs) {
|
||||
return !(rhs < lhs);
|
||||
}
|
||||
inline SPROUT_CONSTEXPR bool
|
||||
operator>=(sprout::uuids::uuid const& lhs, sprout::uuids::uuid const& rhs) {
|
||||
return !(lhs < rhs);
|
||||
}
|
||||
} // anonymous-namespace
|
||||
|
||||
//
|
||||
// swap
|
||||
//
|
||||
inline void swap(sprout::uuids::uuid& lhs, sprout::uuids::uuid& rhs) SPROUT_NOEXCEPT_EXPR(SPROUT_NOEXCEPT_EXPR(lhs.swap(rhs))) {
|
||||
lhs.swap(rhs);
|
||||
}
|
||||
namespace {
|
||||
inline void
|
||||
swap(sprout::uuids::uuid& lhs, sprout::uuids::uuid& rhs)
|
||||
SPROUT_NOEXCEPT_EXPR(SPROUT_NOEXCEPT_EXPR(lhs.swap(rhs)))
|
||||
{
|
||||
lhs.swap(rhs);
|
||||
}
|
||||
} // anonymous-namespace
|
||||
} // namespace uuids
|
||||
|
||||
using sprout::uuids::uuid;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue