You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This repository implements `std::optional` extensions targeting C++26. The `beman.optional` library aims to evaluate the stability, the usability, and the performance of these proposed changes before they are officially adopted by WG21 into the C++ Working Draft. Additionally, it allows developers to use these new features before they are implemented in major standard library compilers.
@@ -14,22 +14,6 @@ This repository implements `std::optional` extensions targeting C++26. The `bema
14
14
15
15
**Status**: [Production ready. API may undergo changes.](https://github.com/bemanproject/beman/blob/main/docs/BEMAN_LIBRARY_MATURITY_MODEL.md#production-ready-api-may-undergo-changes)
16
16
17
-
## License
18
-
19
-
Source is licensed with the Apache 2.0 license with LLVM exceptions
20
-
21
-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
22
-
23
-
Documentation and associated papers are licensed with the Creative Commons Attribution 4.0 International license.
24
-
25
-
// SPDX-License-Identifier: CC-BY-4.0
26
-
27
-
The intent is that the source and documentation are available for use by people implementing their own optional types as well as people using the optional presented here as-is.
28
-
29
-
The README itself is licensed with CC0 1.0 Universal. Copy the contents and incorporate in your own work as you see fit.
30
-
31
-
// SPDX-License-Identifier: CC0-1.0
32
-
33
17
## Examples
34
18
35
19
Full runable examples can be found in `examples/` - please check [./examples/README.md](./examples/README.md).
@@ -54,7 +38,6 @@ for (const auto& i : opt) {
54
38
std::cout << "\"for each loop\" over C++26 optional: opt = " << i << "\n";
55
39
}
56
40
```
57
-
58
41
Full code can be found in [./examples/range_loop.cpp](./examples/range_loop.cpp). Build and run instructions in
59
42
[./examples/README.md](./examples/README.md). Or try it on Compiler Explorer: [range_loop.cpp@Compiler Explorer](https://godbolt.org/z/Gc6Y9j6zf).
Full code can be found in [./examples/optional_ref.cpp](./examples/optional_ref.cpp). Build and run instructions in [./examples/README.md](./examples/README.md). Or try it on Compiler Explorer: [optional_ref.cpp@Compiler Explorer](https://godbolt.org/z/MxjdvTTov).
85
68
69
+
## License
70
+
71
+
Source is licensed with the Apache 2.0 license with LLVM exceptions
72
+
73
+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
74
+
75
+
Documentation and associated papers are licensed with the Creative Commons Attribution 4.0 International license.
76
+
77
+
// SPDX-License-Identifier: CC-BY-4.0
78
+
79
+
The intent is that the source and documentation are available for use by people implementing their own optional types as well as people using the optional presented here as-is.
80
+
81
+
The README itself is licensed with CC0 1.0 Universal. Copy the contents and incorporate in your own work as you see fit.
0 commit comments