mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-18 02:08:09 +08:00
doc: add note about value::at
This commit is contained in:
@@ -470,6 +470,10 @@ If an invalid key (integer for a table, string for an array), it throws
|
|||||||
`toml::type_error` for the conversion. If the provided key is out-of-range,
|
`toml::type_error` for the conversion. If the provided key is out-of-range,
|
||||||
it throws `std::out_of_range`.
|
it throws `std::out_of_range`.
|
||||||
|
|
||||||
|
Note that, although `std::string` has `at()` member function, `toml::value::at`
|
||||||
|
throws if the contained type is a string. Because `std::string` does not
|
||||||
|
contain `toml::value`.
|
||||||
|
|
||||||
## Checking value type
|
## Checking value type
|
||||||
|
|
||||||
You can check the type of a value by `is_xxx` function.
|
You can check the type of a value by `is_xxx` function.
|
||||||
|
Reference in New Issue
Block a user