mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
fix coding-style
This commit is contained in:
parent
df3023db30
commit
5ce2cb023c
196 changed files with 1180 additions and 1787 deletions
|
@ -20,12 +20,10 @@ namespace sprout {
|
|||
//
|
||||
// nil_uuid
|
||||
//
|
||||
namespace {
|
||||
inline SPROUT_CONSTEXPR sprout::uuids::uuid
|
||||
nil_uuid() {
|
||||
return sprout::uuids::nil_generator()();
|
||||
}
|
||||
} // anonymous-namespace
|
||||
inline SPROUT_CONSTEXPR sprout::uuids::uuid
|
||||
nil_uuid() {
|
||||
return sprout::uuids::nil_generator()();
|
||||
}
|
||||
} // namespace uuids
|
||||
} // namespace sprout
|
||||
|
||||
|
|
|
@ -231,44 +231,40 @@ namespace sprout {
|
|||
// operator<=
|
||||
// operator>=
|
||||
//
|
||||
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
|
||||
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);
|
||||
}
|
||||
|
||||
//
|
||||
// swap
|
||||
//
|
||||
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
|
||||
inline void
|
||||
swap(sprout::uuids::uuid& lhs, sprout::uuids::uuid& rhs)
|
||||
SPROUT_NOEXCEPT_EXPR(SPROUT_NOEXCEPT_EXPR(lhs.swap(rhs)))
|
||||
{
|
||||
lhs.swap(rhs);
|
||||
}
|
||||
} // namespace uuids
|
||||
|
||||
using sprout::uuids::uuid;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue