1
0
mirror of https://git.suyu.dev/suyu/suyu synced 2025-09-19 04:28:00 -05:00
Files
suyu-mirror/externals/vcpkg/buildtrees/boost-optional/src/ost-1.79.0-8487fc4ea6.clean
Crimson-Hawk f1e4595ebf Initial commit
2024-03-05 16:42:40 +08:00
..
2024-03-05 16:42:40 +08:00
2024-03-05 16:42:40 +08:00
2024-03-05 16:42:40 +08:00
2024-03-05 16:42:40 +08:00
2024-03-05 16:42:40 +08:00
2024-03-05 16:42:40 +08:00
2024-03-05 16:42:40 +08:00
2024-03-05 16:42:40 +08:00
2024-03-05 16:42:40 +08:00
2024-03-05 16:42:40 +08:00
2024-03-05 16:42:40 +08:00
2024-03-05 16:42:40 +08:00

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.