robot-contrib 262241439f Update contrib/restricted/boost/optional to 1.83.0 1 год назад
..
include 262241439f Update contrib/restricted/boost/optional to 1.83.0 1 год назад
CMakeLists.darwin-x86_64.txt 33ed6077e6 Intermediate changes 1 год назад
CMakeLists.linux-aarch64.txt 58a117b001 External build system generator release 8 1 год назад
CMakeLists.linux-x86_64.txt 33ed6077e6 Intermediate changes 1 год назад
CMakeLists.txt 887be65957 External build system generator release 29 1 год назад
CMakeLists.windows-x86_64.txt 6324d075a5 Intermediate changes 1 год назад
README.md da8658093c Reimport boost/optional as a separate project 2 лет назад
ya.make 262241439f Update contrib/restricted/boost/optional to 1.83.0 1 год назад

README.md

optional

A library for representing optional (nullable) objects in C++.

optional<int> readInt(); // this function may return either an int or a not-an-int

if (optional<int> oi = readInt()) // did I get a real int
  cout << "my int is: " << *oi;   // use my int
else
  cout << "I have no int";

For more information refer to the documentation provided with this library.