Run Code
|
API
|
Code Wall
|
Users
|
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
Please
log in
to post a comment.
boost::geometry::distance performance overhead compared to a straightforward implementation
Tree Example
hello world 3
Example of custom deleter to manage a resource.
Peregruzka
Test bitfields with unnamed union
test string
hello world
GreedyProblem1
INHERIT_CTORS default constructor
Please log in to post a comment.