libboost-optional/1.77.0+1

[full]

A value-semantic, type-safe wrapper for representing 'optional' (or 'nullable') objects of a given type. An optional object may or may not contain a value of the underlying type

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.

version 1.77.0+1
license BSL-1.0Boost Software License 1.0
repository https://pkg.cppget.org/1/stable
download libboost-optional-1.77.0+1.tar.gz
sha256 ce98405319f8e681057399c7c416f6a01979d190ad7882fa770b34782104f5d1
project boost
url github.com/boostorg/optional
doc-url www.boost.org/doc/libs/1_77_0/libs/optional
package-url github.com/build2-packaging/boost
package-email packaging@build2.orgMailing list
topics C++Boost

Depends (10)

libboost-assert == 1.77.0
libboost-config == 1.77.0
libboost-core == 1.77.0
libboost-detail == 1.77.0
libboost-move == 1.77.0
libboost-predef == 1.77.0
libboost-static-assert == 1.77.0
libboost-throw-exception == 1.77.0
libboost-type-traits == 1.77.0
libboost-utility == 1.77.0

Builds

toolchain public-0.14.0
config macos_11-clang_13.0-static_O3 / x86_64-apple-darwin20.5.0
timestamp 2022-07-01 03:16:50 UTC (17:28:39 hours ago)
result success | log | rebuild
toolchain public-0.14.0
config macos_11-clang_13.0-O3 / x86_64-apple-darwin20.5.0
timestamp 2022-07-01 03:14:53 UTC (17:30:37 hours ago)
result success | log | rebuild
toolchain public-0.14.0
config macos_11-clang_13.0 / x86_64-apple-darwin20.5.0
timestamp 2022-07-01 02:12:50 UTC (18:32:40 hours ago)
result success | log | rebuild
toolchain public-0.14.0
config macos_11-clang_12.0 / x86_64-apple-darwin20.5.0
timestamp 2022-07-01 02:05:40 UTC (18:39:50 hours ago)
result success | log | rebuild
toolchain public-0.14.0
config windows_10-msvc_16.11-charset / x86_64-microsoft-win32-msvc14.2
timestamp 2022-06-30 23:14:05 UTC (21:31:25 hours ago)
result success | log | rebuild
toolchain public-0.14.0
config linux_debian_10-gcc_11.2-charset / x86_64-linux-gnu
timestamp 2022-06-30 14:33:22 UTC (01 06:12:08 days ago)
result success | log | rebuild
toolchain public-0.14.0
config windows_10-clang_13.0_llvm_msvc_16.11_lld / x86_64-microsoft-win32-msvc14.2
timestamp 2022-06-29 13:01:27 UTC (02 07:44:03 days ago)
result success | log | rebuild
toolchain public-0.14.0
config windows_10-clang_13.0_llvm_msvc_16.11-O2 / x86_64-microsoft-win32-msvc14.2
timestamp 2022-06-29 12:59:51 UTC (02 07:45:39 days ago)
result success | log | rebuild
toolchain public-0.14.0
config windows_10-clang_13.0_llvm_msvc_16.11-static_O2 / x86_64-microsoft-win32-msvc14.2
timestamp 2022-06-29 12:59:00 UTC (02 07:46:30 days ago)
result success | log | rebuild
toolchain public-0.14.0
config windows_10-clang_13.0_llvm_msvc_16.11 / x86_64-microsoft-win32-msvc14.2
timestamp 2022-06-29 12:58:51 UTC (02 07:46:39 days ago)
result success | log | rebuild
toolchain public-0.14.0
config windows_10-msvc_16.11-O2 / x86_64-microsoft-win32-msvc14.2
timestamp 2022-06-29 12:31:11 UTC (02 08:14:19 days ago)
result success | log | rebuild
toolchain public-0.14.0
config windows_10-gcc_10.2_mingw_w64-static_O2 / x86_64-w64-mingw32
timestamp 2022-06-29 12:20:31 UTC (02 08:24:59 days ago)
result success | log | rebuild
toolchain public-0.14.0
config windows_10-gcc_10.2_mingw_w64 / x86_64-w64-mingw32
timestamp 2022-06-29 12:17:12 UTC (02 08:28:17 days ago)
result success | log | rebuild
toolchain public-0.14.0
config windows_10-gcc_10.2_mingw_w64-O2 / x86_64-w64-mingw32
timestamp 2022-06-29 12:14:34 UTC (02 08:30:56 days ago)
result success | log | rebuild
toolchain public-0.14.0
config windows_10-msvc_16.11-static_O2 / x86_64-microsoft-win32-msvc14.2
timestamp 2022-06-29 12:14:32 UTC (02 08:30:58 days ago)
result success | log | rebuild
toolchain public-0.14.0
config windows_10-msvc_16.11 / x86_64-microsoft-win32-msvc14.2
timestamp 2022-06-29 12:12:25 UTC (02 08:33:05 days ago)
result success | log | rebuild
toolchain public-0.14.0
config linux_debian_11-clang_13.0_libc++-O3 / x86_64-linux-gnu
timestamp 2022-06-29 09:40:20 UTC (02 11:05:10 days ago)
result success | log | rebuild
toolchain public-0.14.0
config linux_debian_11-clang_13.0_libc++-static_O3 / x86_64-linux-gnu
timestamp 2022-06-29 09:39:22 UTC (02 11:06:08 days ago)
result success | log | rebuild
toolchain public-0.14.0
config linux_debian_11-clang_13.0_libc++ / x86_64-linux-gnu
timestamp 2022-06-29 09:38:06 UTC (02 11:07:24 days ago)
result success | log | rebuild
toolchain public-0.14.0
config linux_debian_11-clang_13.0-static_O3 / x86_64-linux-gnu
timestamp 2022-06-29 09:32:35 UTC (02 11:12:54 days ago)
result success | log | rebuild
toolchain public-0.14.0
config linux_debian_11-clang_13.0 / x86_64-linux-gnu
timestamp 2022-06-29 09:31:26 UTC (02 11:14:04 days ago)
result success | log | rebuild
toolchain public-0.14.0
config linux_debian_11-clang_13.0-O3 / x86_64-linux-gnu
timestamp 2022-06-29 09:29:06 UTC (02 11:16:24 days ago)
result success | log | rebuild
toolchain public-0.14.0
config windows_10-clang_12.0_msvc_msvc_16.11 / x86_64-microsoft-win32-msvc14.2
timestamp 2022-06-29 05:07:28 UTC (02 15:38:02 days ago)
result success | log | rebuild
toolchain public-0.14.0
config windows_10-msvc_16.9 / x86_64-microsoft-win32-msvc14.2
timestamp 2022-06-29 04:53:59 UTC (02 15:51:31 days ago)
result success | log | rebuild
toolchain public-0.14.0
config freebsd_13-clang_11.0-static_O3 / x86_64-freebsd13.0
timestamp 2022-06-29 04:51:42 UTC (02 15:53:48 days ago)
result success | log | rebuild
toolchain public-0.14.0
config freebsd_13-clang_11.0-O3 / x86_64-freebsd13.0
timestamp 2022-06-29 04:51:20 UTC (02 15:54:10 days ago)
result success | log | rebuild
toolchain public-0.14.0
config freebsd_13-clang_11.0 / x86_64-freebsd13.0
timestamp 2022-06-29 04:50:20 UTC (02 15:55:10 days ago)
result success | log | rebuild
toolchain public-0.14.0
config linux_debian_10-gcc_11.2-ndebug_O3 / x86_64-linux-gnu
timestamp 2022-06-29 04:49:05 UTC (02 15:56:25 days ago)
result success | log | rebuild
toolchain public-0.14.0
config linux_debian_10-gcc_11.2-static_O3 / x86_64-linux-gnu
timestamp 2022-06-29 04:48:32 UTC (02 15:56:58 days ago)
result success | log | rebuild
toolchain public-0.14.0
config linux_debian_10-gcc_11.2-O3 / x86_64-linux-gnu
timestamp 2022-06-29 04:46:11 UTC (02 15:59:19 days ago)
result success | log | rebuild
toolchain public-0.14.0
config linux_debian_10-gcc_11.2 / x86_64-linux-gnu
timestamp 2022-06-29 04:44:28 UTC (02 16:01:02 days ago)
result success | log | rebuild
toolchain public-0.14.0
config linux_debian_10-clang_12.0 / x86_64-linux-gnu
timestamp 2022-06-29 04:34:12 UTC (02 16:11:18 days ago)
result success | log | rebuild
toolchain public-0.14.0
config linux_debian_10-clang_12.0_libc++ / x86_64-linux-gnu
timestamp 2022-06-29 04:32:47 UTC (02 16:12:43 days ago)
result success | log | rebuild
toolchain public-0.14.0
config windows_10_devmode-msvc_16.11 / x86_64-microsoft-win32-msvc14.2
timestamp 2022-06-29 04:29:16 UTC (02 16:16:14 days ago)
result success | log | rebuild
toolchain public-0.14.0
config linux_debian_10-gcc_10.2 / x86_64-linux-gnu
timestamp 2022-06-29 04:26:21 UTC (02 16:19:09 days ago)
result success | log | rebuild
toolchain public-0.14.0
config freebsd_12-clang_10.0 / x86_64-freebsd12.2
timestamp 2022-06-29 04:19:38 UTC (02 16:25:52 days ago)
result success | log | rebuild
config macos_11-gcc_11.2_homebrew / x86_64-apple-darwin20.5.0
result excluded (https://github)
config macos_11-gcc_11.2_homebrew-O3 / x86_64-apple-darwin20.5.0
result excluded (https://github)
config macos_11-gcc_11.2_homebrew-static_O3 / x86_64-apple-darwin20.5.0
result excluded (https://github)