Argument Dependent Lookup (ADL)
Last updated
What is Argument Dependent Lookup (ADL)?
Argument Dependent Lookup (ADL), also known as Koenig Lookup, is a feature in C++ that extends the function lookup process by allowing the compiler to search for functions in the namespaces of the function arguments' types. This is especially useful when working with overloaded operators and functions defined within namespaces, enabling more intuitive and concise code by automatically finding the appropriate function based on the argument types, even if it's not explicitly qualified.
Free resources to learn Argument Dependent Lookup (ADL)
More in stage 10: Language Concepts
Argument Dependent Lookup (ADL): common questions
Can I learn Argument Dependent Lookup (ADL) in Hindi?
This lesson is written in English. Once you sign in, open it in the interactive course and ask the AI tutor to explain Argument Dependent Lookup (ADL) in Hindi or Hinglish. The tutor answers from this lesson’s own text, so it stays on the syllabus, and it runs on your own Google, OpenAI or Anthropic key.
Is this Argument Dependent Lookup (ADL) tutorial for beginners?
It is lesson 54 of 127 in the free C++ roadmap, in stage 10, Language Concepts. If you are new to C++, start from stage 1 and come back here in order; if you already know the earlier stages, this lesson stands on its own.