diff --git a/docs/content.en/docs/reference/value.md b/docs/content.en/docs/reference/value.md index 9d0fe42d..44ce8b16 100644 --- a/docs/content.en/docs/reference/value.md +++ b/docs/content.en/docs/reference/value.md @@ -751,6 +751,23 @@ comment_type& comments() noexcept; Returns a reference to the comment container. +----- + +### `accessed()` + +```cpp +bool accessed() const; +``` + +#### Return Value + +Returns `true` only if the `value` has been accessed via `as_xxx` or `is_xxx`. +Otherwise, it returns `false`. + +#### Remarks + +It exists only when `TOML11_ENABLE_ACCESS_CHECK` is defined. + ## Non-Member Functions ### `operator==` diff --git a/docs/content.ja/docs/reference/value.md b/docs/content.ja/docs/reference/value.md index 99853f91..fb26a7f1 100644 --- a/docs/content.ja/docs/reference/value.md +++ b/docs/content.ja/docs/reference/value.md @@ -751,6 +751,23 @@ comment_type& comments() noexcept; コメント用コンテナへの参照を返します。 +----- + +### `accessed()` + +```cpp +bool accessed() const; +``` + +#### 戻り値 + +その`value`がパース後に一度でも`as_xxx`や`is_xxx`でアクセスされていた場合、`true`を返します。 +それ以外の場合、`false`を返します。 + +#### 備考 + +`TOML11_ENABLE_ACCESS_CHECK`が定義されている場合にのみ存在します。 + ## 非メンバ関数 ### `operator==`