From 1dfddb7cb28157d448c44f8cd9b2f5a118ae2868 Mon Sep 17 00:00:00 2001 From: ToruNiina Date: Fri, 19 May 2017 15:30:34 +0900 Subject: [PATCH] mention about toml::Array in README --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2f175fb..6510889 100644 --- a/README.md +++ b/README.md @@ -151,8 +151,10 @@ array_of_array = [[1,2,3,4,5], ["foo", "bar", "baz"]] In this case, you can use `toml::value` directly. ```cpp -// use toml::value +// use toml::value in a container const auto a = toml::get>(data.at("array_of_array")); +// or you can use default toml::Array. +const auto a_ = toml::get(data.at("array_of_array")); // you can obtain values from toml::value in the same way as described above. const auto ns = toml::get>(a.at(0)); const auto ss = toml::get>(a.at(1));