how are you using swap directly ?
is it a defined fuction ? or predefined ?
Doubt on rotate image question
swap function is available in C++ STL in the header file
you can read about it here:
http://www.cplusplus.com/reference/algorithm/swap/
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.