S
Shriramana Sharma
Hello. IIUC one is normally discouraged from trying to include one's own code into the std:: namespace, but it is OK to do so when one is specializinga generic std:: algorithm or utility function (like swap) for one's own classes, right? I mean one would then do:
namespace std {
void swap ( myclass & a, myclass & b ) { _code_goes_here_ }
}
.... correct?
Thank you!
namespace std {
void swap ( myclass & a, myclass & b ) { _code_goes_here_ }
}
.... correct?
Thank you!