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
Travel Buddy
Kth smallest element
can be zero
MapTel
frndclass
ssss
suffle array
GL interview
Hashing
RecursiveFact