2007-12-19から1日間の記事一覧

ADL簡易解説

C++

リンクだけだとさみしいので、ADLの簡単な解説を書きます ADL(Argument Dependent name Lookup)とは、引数の型によって呼び出す関数を探索する仕組みです namespace ns { struct hoge {}; void foo(const hoge& h) {} } // namespace ns int main() { ns::ho…