mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Reformat code with clang-format-18
This commit is contained in:
@@ -846,8 +846,9 @@ public:
|
||||
// set
|
||||
template <bool maybe_multi = IsMulti, bool maybe_map = IsMap>
|
||||
auto
|
||||
insert(value_type&& value) -> typename std::
|
||||
enable_if<!maybe_multi && !maybe_map, std::pair<iterator, bool>>::type;
|
||||
insert(value_type&& value) -> typename std::enable_if<
|
||||
!maybe_multi && !maybe_map,
|
||||
std::pair<iterator, bool>>::type;
|
||||
|
||||
// multiset
|
||||
template <bool maybe_multi = IsMulti, bool maybe_map = IsMap>
|
||||
@@ -1795,7 +1796,8 @@ template <
|
||||
template <bool maybe_multi, bool maybe_map>
|
||||
auto
|
||||
aged_ordered_container<IsMulti, IsMap, Key, T, Clock, Compare, Allocator>::
|
||||
insert(value_type&& value) -> typename std::
|
||||
insert(value_type&& value) ->
|
||||
typename std::
|
||||
enable_if<!maybe_multi && !maybe_map, std::pair<iterator, bool>>::type
|
||||
{
|
||||
typename cont_type::insert_commit_data d;
|
||||
|
||||
@@ -1057,8 +1057,9 @@ public:
|
||||
// map, set
|
||||
template <bool maybe_multi = IsMulti, bool maybe_map = IsMap>
|
||||
auto
|
||||
insert(value_type&& value) -> typename std::
|
||||
enable_if<!maybe_multi && !maybe_map, std::pair<iterator, bool>>::type;
|
||||
insert(value_type&& value) -> typename std::enable_if<
|
||||
!maybe_multi && !maybe_map,
|
||||
std::pair<iterator, bool>>::type;
|
||||
|
||||
// multimap, multiset
|
||||
template <bool maybe_multi = IsMulti, bool maybe_map = IsMap>
|
||||
@@ -2799,8 +2800,9 @@ aged_unordered_container<
|
||||
Clock,
|
||||
Hash,
|
||||
KeyEqual,
|
||||
Allocator>::insert(value_type&& value) -> typename std::
|
||||
enable_if<!maybe_multi && !maybe_map, std::pair<iterator, bool>>::type
|
||||
Allocator>::insert(value_type&& value) ->
|
||||
typename std::
|
||||
enable_if<!maybe_multi && !maybe_map, std::pair<iterator, bool>>::type
|
||||
{
|
||||
maybe_rehash(1);
|
||||
typename cont_type::insert_commit_data d;
|
||||
|
||||
@@ -90,7 +90,8 @@ public:
|
||||
XXH3_64bits_update(state_, key, len);
|
||||
}
|
||||
|
||||
explicit operator std::size_t() noexcept
|
||||
explicit
|
||||
operator std::size_t() noexcept
|
||||
{
|
||||
return XXH3_64bits_digest(state_);
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
#ifndef BEAST_EXPECT
|
||||
#define BEAST_EXPECT_S1(x) #x
|
||||
#define BEAST_EXPECT_S2(x) BEAST_EXPECT_S1(x)
|
||||
//#define BEAST_EXPECT(cond) {expect(cond, __FILE__ ":" ##
|
||||
// #define BEAST_EXPECT(cond) {expect(cond, __FILE__ ":" ##
|
||||
//__LINE__);}while(false){}
|
||||
#define BEAST_EXPECT(cond) expect(cond, __FILE__ ":" BEAST_EXPECT_S2(__LINE__))
|
||||
#endif
|
||||
|
||||
@@ -238,7 +238,8 @@ public:
|
||||
return m_sink.active(m_level);
|
||||
}
|
||||
|
||||
explicit operator bool() const
|
||||
explicit
|
||||
operator bool() const
|
||||
{
|
||||
return active();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user