Argument-dependent lookup (ADL)
Në shqip përdoret i njëjti emër.
ShpjegimiSQ
Kur thërret një funksion pa namespace — p.sh. swap(a, b) ose operator<< — C++ e kërkon edhe në namespace-in e tipeve të argumenteve. Prandaj std::cout << s punon pa shkruar std::operator<<.
EnglishEN
When you call a function without a namespace — e.g. swap(a, b) or operator<< — C++ also looks in the namespace of the argument types. That's why std::cout << s works without writing std::operator<<.
Si ta mendosh
Si postieri që e gjen shtëpinë edhe pa emrin e qytetit, sepse e di nga adresa e dërguesit.
Lexoje në anglisht
Like a postman who finds the house without the town name, because he knows it from the sender's address.