mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-12-16 03:08:52 +08:00
docs: add accessed() to reference
This commit is contained in:
@@ -751,6 +751,23 @@ comment_type& comments() noexcept;
|
|||||||
|
|
||||||
Returns a reference to the comment container.
|
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
|
## Non-Member Functions
|
||||||
|
|
||||||
### `operator==`
|
### `operator==`
|
||||||
|
|||||||
@@ -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==`
|
### `operator==`
|
||||||
|
|||||||
Reference in New Issue
Block a user