mirror of
https://github.com/boostorg/heap.git
synced 2026-07-21 13:23:40 +00:00
pre-commit: update
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.5.0
|
||||
rev: v6.0.0
|
||||
hooks:
|
||||
- id: check-yaml
|
||||
- id: end-of-file-fixer
|
||||
@@ -11,7 +11,7 @@ repos:
|
||||
|
||||
|
||||
- repo: https://github.com/pre-commit/mirrors-clang-format
|
||||
rev: v17.0.6
|
||||
rev: v22.1.3
|
||||
hooks:
|
||||
- id: clang-format
|
||||
types_or: [c++, c, cuda]
|
||||
|
||||
@@ -545,7 +545,7 @@ public:
|
||||
rhs.set_size( 0 );
|
||||
rhs.top_element = nullptr;
|
||||
|
||||
super_t::set_stability_count( ( std::max )( super_t::get_stability_count(), rhs.get_stability_count() ) );
|
||||
super_t::set_stability_count( (std::max)( super_t::get_stability_count(), rhs.get_stability_count() ) );
|
||||
rhs.set_stability_count( 0 );
|
||||
}
|
||||
|
||||
|
||||
@@ -345,7 +345,7 @@ private:
|
||||
size_type last_child_index( size_type index ) const
|
||||
{
|
||||
const size_t first_index = first_child_index( index );
|
||||
const size_type last_index = ( std::min )( first_index + D - 1, size() - 1 );
|
||||
const size_type last_index = (std::min)( first_index + D - 1, size() - 1 );
|
||||
|
||||
return last_index;
|
||||
}
|
||||
|
||||
@@ -56,6 +56,6 @@ IntType log2( IntType value )
|
||||
return fn( value );
|
||||
}
|
||||
|
||||
}} // namespace boost::heap
|
||||
}} // namespace boost::heap
|
||||
|
||||
#endif /* BOOST_HEAP_DETAIL_ILOG2_HPP */
|
||||
|
||||
@@ -522,6 +522,6 @@ public:
|
||||
};
|
||||
|
||||
|
||||
}}} // namespace boost::heap::detail
|
||||
}}} // namespace boost::heap::detail
|
||||
|
||||
#endif /* BOOST_HEAP_DETAIL_MUTABLE_HEAP_HPP */
|
||||
|
||||
@@ -131,6 +131,6 @@ private:
|
||||
};
|
||||
|
||||
|
||||
}}} // namespace boost::heap::detail
|
||||
}}} // namespace boost::heap::detail
|
||||
|
||||
#endif /* BOOST_HEAP_DETAIL_ORDERED_ADAPTOR_ITERATOR_HPP */
|
||||
|
||||
@@ -563,6 +563,6 @@ struct extract_allocator_types
|
||||
};
|
||||
|
||||
|
||||
}}} // namespace boost::heap::detail
|
||||
}}} // namespace boost::heap::detail
|
||||
|
||||
#endif /* BOOST_HEAP_DETAIL_STABLE_HEAP_HPP */
|
||||
|
||||
@@ -343,6 +343,6 @@ public:
|
||||
};
|
||||
|
||||
|
||||
}}} // namespace boost::heap::detail
|
||||
}}} // namespace boost::heap::detail
|
||||
|
||||
#endif /* BOOST_HEAP_DETAIL_TREE_ITERATOR_HPP */
|
||||
|
||||
@@ -593,7 +593,7 @@ public:
|
||||
rhs.top_element = nullptr;
|
||||
rhs.set_size( 0 );
|
||||
|
||||
super_t::set_stability_count( ( std::max )( super_t::get_stability_count(), rhs.get_stability_count() ) );
|
||||
super_t::set_stability_count( (std::max)( super_t::get_stability_count(), rhs.get_stability_count() ) );
|
||||
rhs.set_stability_count( 0 );
|
||||
}
|
||||
|
||||
|
||||
@@ -101,6 +101,6 @@ struct MutablePriorityQueue : PriorityQueue< C >
|
||||
bool equal, not_equal;
|
||||
};
|
||||
|
||||
}} // namespace boost::heap
|
||||
}} // namespace boost::heap
|
||||
|
||||
#endif /* BOOST_HEAP_CONCEPTS_HPP */
|
||||
|
||||
@@ -61,7 +61,7 @@ struct heap_merge_emulate
|
||||
rhs.pop();
|
||||
}
|
||||
|
||||
lhs.set_stability_count( ( std::max )( lhs.get_stability_count(), rhs.get_stability_count() ) );
|
||||
lhs.set_stability_count( (std::max)( lhs.get_stability_count(), rhs.get_stability_count() ) );
|
||||
rhs.set_stability_count( 0 );
|
||||
}
|
||||
};
|
||||
@@ -118,6 +118,6 @@ void heap_merge( Heap1& lhs, Heap2& rhs )
|
||||
}
|
||||
|
||||
|
||||
}} // namespace boost::heap
|
||||
}} // namespace boost::heap
|
||||
|
||||
#endif /* BOOST_HEAP_MERGE_HPP */
|
||||
|
||||
@@ -587,7 +587,7 @@ public:
|
||||
rhs.set_size( 0 );
|
||||
rhs.root = nullptr;
|
||||
|
||||
super_t::set_stability_count( ( std::max )( super_t::get_stability_count(), rhs.get_stability_count() ) );
|
||||
super_t::set_stability_count( (std::max)( super_t::get_stability_count(), rhs.get_stability_count() ) );
|
||||
rhs.set_stability_count( 0 );
|
||||
}
|
||||
|
||||
|
||||
@@ -180,6 +180,6 @@ struct arity
|
||||
{};
|
||||
#endif
|
||||
|
||||
}} // namespace boost::heap
|
||||
}} // namespace boost::heap
|
||||
|
||||
#endif /* BOOST_HEAP_POLICIES_HPP */
|
||||
|
||||
@@ -409,6 +409,6 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
}} // namespace boost::heap
|
||||
}} // namespace boost::heap
|
||||
|
||||
#endif /* BOOST_HEAP_PRIORITY_QUEUE_HPP */
|
||||
|
||||
@@ -556,7 +556,7 @@ public:
|
||||
rhs.root = nullptr;
|
||||
sanity_check();
|
||||
|
||||
super_t::set_stability_count( ( std::max )( super_t::get_stability_count(), rhs.get_stability_count() ) );
|
||||
super_t::set_stability_count( (std::max)( super_t::get_stability_count(), rhs.get_stability_count() ) );
|
||||
rhs.set_stability_count( 0 );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user