Files
cs5500_parallel_prog/HW10/partialPermutation.h
2020-03-30 19:07:45 -06:00

13 lines
349 B
C++

//
// Created by Brady Bodily on 3/30/20.
//
#include <iostream>
#ifndef HW10_PARTIALPERMUTATION_H
#define HW10_PARTIALPERMUTATION_H
template<typename BidiIt>
bool next_partial_permutation(BidiIt first, BidiIt middle, BidiIt last) {
std::reverse(middle, last);
return std::next_permutation(first, last);
}
#endif //HW10_PARTIALPERMUTATION_H