From cb67970c007f4bc965fbeb90e9fffd95dbef2236 Mon Sep 17 00:00:00 2001 From: Lexi Winter Date: Mon, 24 Mar 2025 22:58:01 +0000 Subject: README: mention the iterator interface --- README | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'README') 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? -- cgit v1.2.3