Skip to content

Commit 0bb41b2

Browse files
committed
std::optionalstd::expectedへのリンクを追加
1 parent 371b10e commit 0bb41b2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tips/optional.md

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
- [関数の失敗値と成功値](#fail-value)
77
- [無効値がありえることを仕様ではなく型で示す](#type-as-nullary-value)
88
- [`if`文の条件式で定義した変数に格納する](#store-value-in-if-expr)
9+
- [C++の国際標準規格上の類似する機能](#cpp-standard)
910

1011

1112
## <a id="fail-value" href="#fail-value">関数の失敗値と成功値</a>
@@ -138,3 +139,6 @@ if (boost::optional<int> p = get_vector()) {
138139
}
139140
```
140141

142+
## <a id="cpp-standard" href="#cpp-standard">C++の国際標準規格上の類似する機能</a>
143+
- [`std::optional`](https://cpprefjp.github.io/reference/optional/optional.html)
144+
- [`std::expected`](https://cpprefjp.github.io/reference/expected/expected.html)

0 commit comments

Comments
 (0)