Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in stdoptional

Can I somehow return std::optional with const-reference to my data to avoid copy of it? [duplicate]

c++ stl c++17 stdoptional

Alternative to value_or that is indifferent to the returned type

c++ stdoptional

Does boost have an "compact optional" where presence is encoded by special value of type?

c++ boost stdoptional

What is the use case for not having lazy evaluation of value_or()?

How to set a string to an optional string value?

c++ string stdoptional

Does std::optional change signature of the function?

c++ c++17 stdoptional

How can I use std::optional to return a NULL value?

c++ std stdoptional

When and why should I use std::monostate instead of std::optional with an std::variant?

Are std::optional members stored contiguously?

c++ std stdoptional

ranges::views::filter no longer compatible with std::optional, msvc v19.36

c++ range-v3 stdoptional

C++ equivalent of Javascript's '?.' operator for optional-chaining?

How to access contained value in C++23 std::optional without writing identity boilerplate?

c++ stdoptional c++23

Is there a compact way to make std::optional<T>::value_or work on member variables of T

c++ c++20 stdoptional

Should I move the value out of an optional or move the whole optional?

c++ c++17 move stdoptional

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

c++ stdoptional

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

c++ stdoptional

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

c++ c++17 stdoptional