Doubt on rotate image question

how are you using swap directly ?
is it a defined fuction ? or predefined ?

swap function is available in C++ STL in the header file
you can read about it here:
http://www.cplusplus.com/reference/algorithm/swap/

hey @mehulbhandari358 if your doubt is solved, please mark it as resolved

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.