aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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?