wynnbuilder-forked-for-changes/js/c++/utils.h
2023-04-10 13:08:22 -07:00

11 lines
252 B
C++

#pragma once
/**
* Generate all permutations of a vector.
*
* @param a: vector containing the elements to permute.
*
* @return a vector with all permutations of `a`.
*/
template<typename T>
std::vector<std::vector<T>> perm(std::vector<T> a);