Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédente | |
lang:cpp:variable [2021/11/05 23:23] – Ajout de "non-const lvalue reference to type" root | lang:cpp:variable [2025/02/06 10:12] (Version actuelle) – Ajout de "Variable optionnelle" root |
---|
| |
[[https://stackoverflow.com/questions/17874489/disambiguate-overloaded-member-function-pointer-being-passed-as-template-paramet|Disambiguate overloaded member function pointer being passed as template parameter]] {{ :lang:cpp:variable:c_-_disambiguate_overloaded_member_function_pointer_being_passed_as_template_parameter_-_stack_overflow_2021-05-29_08_00_38_.html |Archive du 26/07/2013 le 29/05/2021}} | [[https://stackoverflow.com/questions/17874489/disambiguate-overloaded-member-function-pointer-being-passed-as-template-paramet|Disambiguate overloaded member function pointer being passed as template parameter]] {{ :lang:cpp:variable:c_-_disambiguate_overloaded_member_function_pointer_being_passed_as_template_parameter_-_stack_overflow_2021-05-29_08_00_38_.html |Archive du 26/07/2013 le 29/05/2021}} |
| |
| ===Variable optionnelle=== |
| |
| Création une variable ''field'' de type ''void*'' si ''T'' est de type ''int''. |
| |
| <code cpp> |
| std::conditional_t<std::is_integral_v<T>, int, void*> field; |
| </code> |
| |
====Programmation fonctionnelle==== | ====Programmation fonctionnelle==== |
| |