Hi All,
need to reverse a list of vectors ( c++ c11 GCC ) I was going to do a copy and then swap and replace. However I thought I'd check out if something already existed and found reverse. I tried to use this on my vectors
[ code ]
/*swap the list around*/
std::reverse( win.list.begin( ), win.list.end( ) );
[/code]
I get the title error "error: ‘reverse’ is not a member of ‘std’" can anyone advise why I get this? I'm I misreading the how this should be used or does it not exist in some forms of C++?
http://www.cplusplus.com/reference/algorithm/reverse/