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 b1 = get_value(); bool b2 = get_value_2(); (void)b1; (void)b2; }
run
|
edit
|
history
|
help
0
Maze problem solution
Variadic Template: Make Index Sequence
ArrayList
Saam hash example
chakib
Dynamic call
applidiumResto_corrigé
MiniumNumberDivideConquer
C++ does not have reference-to-reference types
Access to temporary object