Search code examples
What's the point of ref-qualified member functions in `std::optional::value`...

c++stdoptionalref-qualifier

Read More
How would a std::optional<std::nullopt_t> operate?...

c++c++17stdoptional

Read More
Forward declaration of class inside unique_ptr inside optional with default argument fails...

c++stdoptional

Read More
Why doesn't iterate over a container accessed directly through std::optional<T>::value() w...

c++algorithmc++20stdoptionalrange-based-loop

Read More
optional refence to an object: best way?...

c++referencestdoptional

Read More
std::minmax_element comparer for a vector with std::optional is incorrect...

c++vectorminmaxstdoptional

Read More
Can I make std::optional<std::exception>::value() return the (polymorphic) inherited exception...

c++exceptionc++17stdoptional

Read More
Bind reference to T& in both cases, std::optional<T> and T, at compile time...

c++constexprtemplate-meta-programmingstdoptional

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

c++range-v3stdoptional

Read More
Using std::optional to invalidate my RAII object in move constructor/asignment...

c++c++20raiistdoptional

Read More
How can I get clang-tidy to not complain about passing kind-of-lightweight types by value?...

c++clionstatic-analysisclang-tidystdoptional

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

c++stlc++17lazy-evaluationstdoptional

Read More
What are monadic bind and monadic return for C++23 optional?...

c++monadsstdoptionalc++23

Read More
Is there a macro to make std::optional::operator* throw on bad access?...

c++stdoptional

Read More
Copy/move elision vs emplace with std::optional...

c++gcccopy-elisionemplacestdoptional

Read More
std::optional<T> appears to destroy T twice when leaving its scope. Why?...

c++unique-ptrstdoptional

Read More
Using boost::program_options with std::optional...

boostboost-program-optionsstdoptional

Read More
C++ compiler says "inconsistent deduction for auto return type"...

c++autoreinterpret-castnullptrstdoptional

Read More
How to efficiently return an std::optional...

c++optimizationc++17stdoptional

Read More
creating std::functional object to wrap a lambda with a call to static member function...

c++c++17stdoptional

Read More
Can I copy-elide an immovable & uncopyable function result into an optional?...

c++copy-elisionstdoptional

Read More
prevent initializing std::optional<std::reference_wrapper<const T>> with rvalue std::opt...

c++dangling-pointerstdoptional

Read More
Why do the C++ Core Guidelines not recommend to use std::optional over pointers when approriate?...

c++stdoptionalcpp-core-guidelines

Read More
What are the advantages/disadvantages of std::optional over nullptr?...

c++stdoptional

Read More
Does std::optional contain a value during construction?...

c++language-lawyerstdoptional

Read More
When would you use optional<not_null<T*>>...

c++notnullstdoptional

Read More
Why is there no built-in way to get a pointer from an std::optional?...

c++option-typestdoptional

Read More
Does std::make_tuple() not work with objects of type std::optional?...

c++stdtuplestdoptional

Read More
How to pass std::optional struct that contains std::unique_ptr to a function?...

c++functionc++17unique-ptrstdoptional

Read More
use of std::experimental::optional with g++ v8.2.0...

c++g++c++17stdoptional

Read More
BackNext