「cpp/utility/functional/function/operator()」の版間の差分
提供: cppreference.com
< cpp | utility | functional | function
細 (Fix some translations) |
|||
1行: | 1行: | ||
− | |||
{{cpp/utility/functional/function/title | operator()}} | {{cpp/utility/functional/function/title | operator()}} | ||
{{cpp/utility/functional/function/navbar}} | {{cpp/utility/functional/function/navbar}} | ||
− | {{ddcl | | + | {{ddcl | sincec++11 | |
− | R operator()( | + | R operator()( ... args ) const; |
}} | }} | ||
− | + | callable {{tt|args}} | |
− | === | + | |
+ | |||
+ | ====== | ||
{{par begin}} | {{par begin}} | ||
− | {{par | args | | + | {{par | args | callable }} |
{{par end}} | {{par end}} | ||
− | === | + | ====== |
− | + | {{tt|R}} {{c|void}} callable | |
===例外=== | ===例外=== | ||
− | * | + | * {{c|*this}} callable {{c|!*this {{==}} true}} |
===例=== | ===例=== | ||
{{example | {{example | ||
− | | | + | | {{lc|std::function}} {{lc|std::function}} |
| code= | | code= | ||
#include <iostream> | #include <iostream> | ||
54行: | 55行: | ||
}} | }} | ||
− | === | + | ====== |
− | {{ | + | {{ |
+ | |||
+ | |||
+ | |||
+ | }} | ||
[[de:cpp/utility/functional/function/operator()]] | [[de:cpp/utility/functional/function/operator()]] |