I am new to c++. But worked on python. Need to convert the python code snippet to c++. How to simulate the python permutation in c++. Where can find the document for this?
#include <iostream>
#include <algorithm>
usingnamespace std;
int main()
{
int L[] = { 1, 2, 3 };
do
{
for ( auto e : L ) cout << e << ' ';
cout << '\n';
} while( next_permutation( L, L + sizeof L / sizeof L[0] ) );
}