Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Compare boost optional with the actual value
#include <boost/optional.hpp> #include <iostream> int main(int argc, char* argv[]) { boost::optional<int> d1 = boost::make_optional(20); boost::optional<int> d2 = boost::none; std::cout << (d1 == 20) << std::endl; std::cout << (d1 == 10) << std::endl; std::cout << (d2 == 20) << std::endl; return 0; }
run
|
edit
|
history
|
help
0
Widget Class with dynamic memory and pointers
TupleCPP
Stok sinifi
code_chef
binder
horse aand goat working
2
Least missing num
CirclQ
Dar