Top "Boost-optional" questions

A Boost C++ library that provides a container that can represent uninitialized objects of arbitrary type, notably allowing easier definition of functions that might not have a value to return

failed attempt of using boost::optional

I have been trying to use boost optional for a function that could either return an object or a null …

c++ boost-optional
What is the rationale for boost::none_t implementation?

Boost.Optional uses a dummy type to allow constructing uninitialized instances of boost::optional<T>. This type is …

c++ boost boost-optional
Why use boost::optional when I can return a pointer

If I have a find function that can sometimes fail to find the required thing, I tend to make that …

c++ c++11 boost-optional
Is it possible to move a boost::optional?

I've been trying to define a defaulted move constructor in a class with a boost::optional member variable. #include <…

c++ boost c++11 move-semantics boost-optional