Skip to content
Boost.org optional module
C++ Other
  1. C++ 99.5%
  2. Other 0.5%
Branch: develop
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
doc docs and tests fixes Nov 8, 2018
include/boost Fix unused argument warning Feb 27, 2019
meta Fix the category. Jan 10, 2016
test docs and tests fixes Nov 8, 2018
.gitattributes Initial versions Jan 22, 2003
.travis.yml Add .travis.yml Oct 29, 2017
CMakeLists.txt [CMake] Add minimal cmake support Mar 2, 2019
README.md Added README.md file Apr 28, 2014
index.html Add minor documentation fixes to the release branch. May 21, 2008

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.

You can’t perform that action at this time.