|
NexusForce 1.0.0
A Modern C++ Library with extended functionality, web components, and utility libraries
|
排列算法 更多...
#include "NeForce/core/algorithm/shift.hpp"函数 | |
| template<typename Iterator1, typename Iterator2, typename BinaryPred> | |
| 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> | |
| 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> | |
| constexpr bool | prev_permutation (Iterator first, Iterator last, Compare comp) |
| 生成上一个字典序排列 | |
| template<typename Iterator> | |
| constexpr bool | prev_permutation (Iterator first, Iterator last) |
| 生成上一个字典序排列 | |