mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-07-02 14:04:09 +00:00
fix next, prev
This commit is contained in:
parent
75228465fe
commit
cf9f6670b6
18 changed files with 243 additions and 0 deletions
|
@ -76,6 +76,11 @@ namespace sprout {
|
|||
} // namespace detail
|
||||
|
||||
// 25.2.12 Is permutation
|
||||
//
|
||||
// recursion depth:
|
||||
// [first1, last1), first2 are RandomAccessIterator -> O(log N)
|
||||
// otherwise -> O(N^2)
|
||||
//
|
||||
template<typename ForwardIterator1, typename ForwardIterator2, typename BinaryPredicate>
|
||||
inline SPROUT_CONSTEXPR bool
|
||||
is_permutation(ForwardIterator1 first1, ForwardIterator1 last1, ForwardIterator2 first2, BinaryPredicate pred) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue