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

MSTL排列算法 更多...

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

浏览该文件的源代码.

函数

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

详细描述

MSTL排列算法

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

在文件 permutation.hpp 中定义.