From 483eb2f56657e8e7f419ab1a4fab8dce9ade8609 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 20:24:20 +0200 Subject: Adding upstream version 14.2.21. Signed-off-by: Daniel Baumann --- src/boost/libs/optional/README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/boost/libs/optional/README.md (limited to 'src/boost/libs/optional/README.md') diff --git a/src/boost/libs/optional/README.md b/src/boost/libs/optional/README.md new file mode 100644 index 00000000..4f73388d --- /dev/null +++ b/src/boost/libs/optional/README.md @@ -0,0 +1,15 @@ +optional +======== + +A library for representing optional (nullable) objects in C++. + +```cpp +optional readInt(); // this function may return either an int or a not-an-int + +if (optional 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. -- cgit v1.2.3