Skip to content

Commit

Permalink
docs: add accessed() to reference
Browse files Browse the repository at this point in the history
  • Loading branch information
ToruNiina committed Feb 13, 2025
1 parent e6f9043 commit 23c1597
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/content.en/docs/reference/value.md
Original file line number Diff line number Diff line change
Expand Up @@ -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==`
Expand Down
17 changes: 17 additions & 0 deletions docs/content.ja/docs/reference/value.md
Original file line number Diff line number Diff line change
Expand Up @@ -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==`
Expand Down

0 comments on commit 23c1597

Please # to comment.