I use next_permutation function to have a vector list permutation, but the stack is overflow when running the program, due to size of the vector
#include <vector>
#include <algorithm>
 vector<int> uuid_list_index;
vector<vector<int>> permutation_uuid_lists;
        for(size_t i=0; i<12; i++)
        {
            uuid_list_index.push_back(i);
        }
        do permutation_uuid_lists.push_back(uuid_list_index);
        while(next_permutation(uuid_list_index.begin(), uuid_list_index.end()));
when run the program, the binary overflow crash, How implement a permutation function for list {0,1,2,3,4,5,6,7,8,9,10,11,12}?
 
    