Search code examples
Optional const by-reference argument in C++...


c++pass-by-referenceoptional-parametersstdoptional

Read More
Is implicit conversion to std::optional guaranteed to use move constructor?...


c++move-constructorstdoptional

Read More
Overhead of std::optional<T>?...


performanceg++c++14overheadstdoptional

Read More
range-based for-loop in C++ over std::optional<Container> does not work...


c++c++17c++20stdoptionalranged-loops

Read More
What is the point of `std::make_optional`...


c++c++17stdoptionalctaddeduction-guide

Read More
Correct way of inserting std::optional<T> into std::vector<T>...


c++stdoptional

Read More
Iterating over std::optional...


c++option-typestdoptional

Read More
Return std::optional<T> where T's constructor is private...


c++c++17stdoptional

Read More
Why can't I assign an std::optional of std::lock_guard?...


c++c++17mutexstdoptionallock-guard

Read More
Are std::optional members stored contiguously?...


c++stdstdoptional

Read More
Why does std::optional not have a specialization for reference types?...


c++c++11language-designstdoptionalboost-optional

Read More
Function template call: type deduction and empty brace-enclosed initializer list...


c++language-lawyertype-deductionstdoptional

Read More
Casting std::optional inferior type...


c++stdoptional

Read More
What's the advantage of `std::optional` over `std::shared_ptr` and `std::unique_ptr`?...


c++option-typec++17stdoptional

Read More
Can I have a std::optional<T> if T is neither constructible nor copyable nor movable?...


c++c++17stdoptional

Read More
Is it ok to double-dereference ("**itOpt") an optional iterator?...


c++iteratorclangdereferencestdoptional

Read More
Does passing an std::optional<T> by reference actually save copying?...


c++stdoptional

Read More
`std::optional` factory function with guaranteed copy elision and `private` constructor, without pas...


c++c++17explicitcopy-elisionstdoptional

Read More
Why is it undefined behavior to call operator* on an empty std::optional if I don't access the r...


c++undefined-behaviorstdoptional

Read More
Is use of empty std::optional<string> UB or not?...


c++undefined-behaviorstdoptional

Read More
What's the difference between C++23's optional::transform and optional::and_then?...


c++monadsmonad-transformersstdoptionalc++23

Read More
Is it useful to construct an std::optional using std::in_place when returning from a function?...


c++c++20copy-elisionstdoptional

Read More
Unexpected behavior of std::is_copy_assignable and boost::optional...


c++boosttype-traitsstdoptionalboost-optional

Read More
error: cannot convert 'std::optional<int>' to 'const int' in initialization...


c++foldstd-rangesc++23stdoptional

Read More
Writing functions which handle invalid inputs in C++...


c++functionstdoptional

Read More
Pass-through constructor for std::optional arguments...


c++c++17stdoptional

Read More
Pass-through constructor for std::optional argument...


c++c++17stdoptional

Read More
namespace std:: does not contain optional...


c++stdoptional

Read More
Is there another way to achieve the functionality of std::optional without another object being crea...


c++stdoptional

Read More
How std::optional library handles emplace operation?...


c++emplacestdoptional

Read More
BackNext