|
MSTL 1.4.0
A Modern C++ Library with extended functionality, web components, and utility libraries
|
MSTL排列算法 更多...
#include "MSTL/core/algorithm/shift.hpp"函数 | |
| template<typename Iterator1, typename Iterator2, typename BinaryPred, enable_if_t< is_ranges_bid_iter_v< Iterator1 > &&is_ranges_bid_iter_v< Iterator2 >, int > = 0> | |
| constexpr bool | is_permutation (Iterator1 first1, Iterator1 last1, Iterator2 first2, Iterator2 last2, BinaryPred pred) |
| 检查两个序列是否为排列关系 | |
| template<typename Iterator1, typename Iterator2> | |
| constexpr bool | is_permutation (Iterator1 first1, Iterator1 last1, Iterator2 first2, Iterator2 last2) |
| 检查两个序列是否为排列关系 | |
| template<typename Iterator, typename Compare, enable_if_t< is_ranges_bid_iter_v< Iterator >, int > = 0> | |
| constexpr bool | next_permutation (Iterator first, Iterator last, Compare comp) |
| 生成下一个字典序排列 | |
| template<typename Iterator> | |
| constexpr bool | next_permutation (Iterator first, Iterator last) |
| 生成下一个字典序排列 | |
| template<typename Iterator, typename Compare, enable_if_t< is_ranges_bid_iter_v< Iterator >, int > = 0> | |
| constexpr bool | prev_permutation (Iterator first, Iterator last, Compare comp) |
| 生成上一个字典序排列 | |
| template<typename Iterator> | |
| constexpr bool | prev_permutation (Iterator first, Iterator last) |
| 生成上一个字典序排列 | |