Snippet: conditional operator

property value
IDE Visual Studio
Language C++
Title conditional operator
Shortcut co
Description conditional operator
Snippet Types Expansion

Placeholders

Identifier Tooltip Default Value Editable Function Type Name
condition Condition to evaluate condition yes
false When false false yes
true When true true yes

Code

condition ? true : false