NexusForce 1.0.0
A Modern C++ Library with extended functionality, web components, and utility libraries
载入中...
搜索中...
未找到
permutation.hpp 文件参考

排列算法 更多...

permutation.hpp 的引用(Include)关系图:

浏览该文件的源代码.

函数

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)
 生成上一个字典序排列

详细描述

排列算法

此文件提供了排列算法实现, 包括排列检查、下一个排列和上一个排列的生成。

在文件 permutation.hpp 中定义.