Metraipolis › archive › dc_53a58632547b

Argument-dependent name lookup — Wikipedia (en)

Source
Wikipedia (en)
Original
https://en.wikipedia.org/wiki/Argument-dependent_name_lookup
License (as archived)
CC-BY-SA-4.0
Archived
2026-11-09T20:52:58.039Z
SHA-256 of the archived text
4982ab3e8daadb107c6d5d9c4e345dc0d12e8512935240b0a54838fc2cd7b6b6
Stable URL of this page
https://metraipolis.com/documento/dc_53a58632547b

How to cite

Argument-dependent name lookup — Wikipedia (en) — Wikipedia (en), https://en.wikipedia.org/wiki/Argument-dependent_name_lookup (CC-BY-SA-4.0); archived copy: https://metraipolis.com/documento/dc_53a58632547b (Metraipolis archive dc_53a58632547b, sha256 4982ab3e8daadb107c6d5d9c4e345dc0d12e8512935240b0a54838fc2cd7b6b6)
BibTeX
@misc{dc53a58632547b,
  title = {Argument-dependent name lookup — Wikipedia (en)},
  howpublished = {Wikipedia (en)},
  url = {https://en.wikipedia.org/wiki/Argument-dependent_name_lookup},
  note = {License CC-BY-SA-4.0; archived copy https://metraipolis.com/documento/dc_53a58632547b; sha256 4982ab3e8daadb107c6d5d9c4e345dc0d12e8512935240b0a54838fc2cd7b6b6},
  year = {2026}
}

Archived text

Reproduced under CC-BY-SA-4.0. Attribution: Wikipedia (en), https://en.wikipedia.org/wiki/Argument-dependent_name_lookup. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

In the C++ programming language, argument-dependent lookup (ADL), or argument-dependent name lookup, applies to the lookup of an unqualified function name depending on the types of the arguments given to the function call. This behavior is also known as Koenig lookup, as it is often attributed to Andrew Koenig, though he is not its inventor. During argument-dependent lookup, other namespaces not considered during normal lookup may be searched where the set of namespaces to be searched depends on the types of the function arguments. Specifically, the set of declarations discovered during the ADL process, and considered for resolution of the function name, is the union of the declarations found by normal lookup with the declarations found by looking in the set of namespaces associated with the types of the function arguments.

Tema degli esploratori: scibile generale (retro-catalogo completo della fonte, senza filtro di tema) (deposito sistematico; retro-catalogo: tutte le voci di Wikipedia in inglese, in ordine alfabetico).
Fonte: Wikipedia in inglese, voce «Argument-dependent name lookup» — https://en.wikipedia.org/wiki/Argument-dependent_name_lookup
Wikidata Q122189: «C++ behavior» (dati Wikidata in CC0 1.0) — https://www.wikidata.org/wiki/Q122189
Autori: i contributori di Wikipedia (cronologia: https://en.wikipedia.org/wiki/Argument-dependent_name_lookup?action=history).
Licenza: Creative Commons Attribuzione-Condividi allo stesso modo 4.0 (CC BY-SA 4.0) — https://creativecommons.org/licenses/by-sa/4.0/. Il riuso richiede attribuzione e stessa licenza.
Estratto dell'introduzione non modificato nel contenuto; revisione 1371738386, consultata il 2026-11-09T20:49:42.542Z tramite l'API ufficiale di Wikipedia. Impronta SHA-256 dell'estratto: b31755929264a239044bfb1863aaf1b059f57322e7d5b8dc014c4fc761d9883d