{"type":"rich","width":"100%","description":"\u30ea\u30f3\u30af\u3060\u3051\u3060\u3068\u3055\u307f\u3057\u3044\u306e\u3067\u3001ADL\u306e\u7c21\u5358\u306a\u89e3\u8aac\u3092\u66f8\u304d\u307e\u3059 ADL(Argument Dependent name Lookup)\u3068\u306f\u3001\u5f15\u6570\u306e\u578b\u306b\u3088\u3063\u3066\u547c\u3073\u51fa\u3059\u95a2\u6570\u3092\u63a2\u7d22\u3059\u308b\u4ed5\u7d44\u307f\u3067\u3059 namespace ns { struct hoge {}; void foo(const hoge& h) {} } // namespace ns int main() { ns::hoge h; foo(h); // using\u3082using namespace\u3082\u4f7f\u308f\u305a\u306bns::foo\u304c\u547c\u3073\u51fa\u305b\u3066\u3044\u308b\uff01 return 0; } \u540d\u524d\u7a7a\u9593\u5185\u306e\u6f14\u7b97\u5b50\u547c\u3073\u51fa\u3057\u306f\u3001\u3053\u306e\u4ed5\u7d44\u307f\u304c\u306a\u3044\u3068\u3067\u304d\u307e\u305b\u3093 (\u3067\u304d\u306a\u304f\u306f\u306a\u3044\u3051\u3069\u3001\u2026","author_name":"faith_and_brave","version":"1.0","url":"https://faithandbrave.hateblo.jp/entry/20071219/1198055224","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffaithandbrave.hateblo.jp%2Fentry%2F20071219%2F1198055224\" title=\" ADL\u7c21\u6613\u89e3\u8aac - Faith and Brave - C++\u3067\u904a\u307c\u3046\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":" ADL\u7c21\u6613\u89e3\u8aac","categories":["C++"],"provider_name":"Hatena Blog","height":"190","provider_url":"https://hatena.blog","blog_title":"Faith and Brave - C++\u3067\u904a\u307c\u3046","image_url":null,"published":"2007-12-19 18:07:04","author_url":"https://blog.hatena.ne.jp/faith_and_brave/","blog_url":"https://faithandbrave.hateblo.jp/"}