What's the advantage of `std::optional` over `std::shared_ptr` and `std::unique_ptr`?...
Read MoreWhy does std::optional not have a specialization for reference types?...
Read MoreCan I have a std::optional<T> if T is neither constructible nor copyable nor movable?...
Read MoreOverhead of std::optional<T>?...
Read MoreIs it ok to double-dereference ("**itOpt") an optional iterator?...
Read MoreDoes passing an std::optional<T> by reference actually save copying?...
Read More`std::optional` factory function with guaranteed copy elision and `private` constructor, without pas...
Read MoreWhy is it undefined behavior to call operator* on an empty std::optional if I don't access the r...
Read MoreIs use of empty std::optional<string> UB or not?...
Read MoreWhat's the difference between C++23's optional::transform and optional::and_then?...
Read MoreIs it useful to construct an std::optional using std::in_place when returning from a function?...
Read MoreUnexpected behavior of std::is_copy_assignable and boost::optional...
Read Moreerror: cannot convert 'std::optional<int>' to 'const int' in initialization...
Read MoreWriting functions which handle invalid inputs in C++...
Read MorePass-through constructor for std::optional arguments...
Read MorePass-through constructor for std::optional argument...
Read Morenamespace std:: does not contain optional...
Read MoreIs there another way to achieve the functionality of std::optional without another object being crea...
Read MoreHow std::optional library handles emplace operation?...
Read MoreGetting an optional of a class derived from abstract class, from a class derived from abstract class...
Read Morestd::optional::transform with std::addressof...
Read MorePass `std::optional::value` to `std::views::transform`...
Read MoreInteraction between std::optional<std::any> and has_value()...
Read MoreWhat's the point of ref-qualified member functions in `std::optional::value`...
Read MoreHow would a std::optional<std::nullopt_t> operate?...
Read MoreForward declaration of class inside unique_ptr inside optional with default argument fails...
Read MoreWhy doesn't iterate over a container accessed directly through std::optional<T>::value() w...
Read Moreoptional refence to an object: best way?...
Read More