Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Optional conversions
struct Optional { explicit operator bool() { return true; } }; bool get_value() { Optional op; return op; } bool get_value_2() { Optional op; return !!op; } int main() { bool b = get_value(); bool b = get_value_2(); }
run
|
edit
|
history
|
help
0
Namespace scope qualifier
Forgetting to check end
Example Node Program
cv5_class
problem_name_1
Simple Generic Data Type Example
Random values and probability distribution
virtual members
Делим на Ноль
wellformed number