2 ms·
In C++, argument-dependent lookup (https://en.cppreference.com/w/cpp/language/adl https://en.cppreference.com/w/cpp/language/adl) lets you specify operators in
by account42 7y ago
In C++, argument-dependent lookup (https://en.cppreference.com/w/cpp/language/adl https://en.cppreference.com/w/cpp/language/adl) lets you specify operators in the same namespace as the type of (any of) their arguments.