aboutsummaryrefslogtreecommitdiffstats
path: root/README
diff options
context:
space:
mode:
authorLexi Winter <lexi@hemlock.eden.le-fay.org>2025-03-24 22:58:01 +0000
committerLexi Winter <lexi@hemlock.eden.le-fay.org>2025-03-24 22:58:01 +0000
commitcb67970c007f4bc965fbeb90e9fffd95dbef2236 (patch)
tree63bb7ff97f1fa3eafe1d149c459e1199a39f496d /README
parentb82e66c2f41f9f8fb14391926e9e716c2ab18271 (diff)
downloadlibnvxx-cb67970c007f4bc965fbeb90e9fffd95dbef2236.tar.gz
libnvxx-cb67970c007f4bc965fbeb90e9fffd95dbef2236.tar.bz2
README: mention the iterator interface
Diffstat (limited to 'README')
-rw-r--r--README7
1 files changed, 7 insertions, 0 deletions
diff --git a/README b/README
index b1ed782..953feee 100644
--- a/README
+++ b/README
@@ -27,6 +27,13 @@ the basic API is very similar to the C libnv API:
assert(nvl.exists_number("the answer"));
std::print("{0}\n", nvl.get_number("the answer"));
+iterator interface:
+
+ for (auto [name, value] : nvl) {
+ std::print("key = {0}\n", name);
+ // do something with value...
+ }
+
infrequently asked questions:
Q: what version of FreeBSD does libnvxx require?