diff options
| author | Lexi Winter <lexi@hemlock.eden.le-fay.org> | 2025-03-24 22:58:01 +0000 |
|---|---|---|
| committer | Lexi Winter <lexi@hemlock.eden.le-fay.org> | 2025-03-24 22:58:01 +0000 |
| commit | cb67970c007f4bc965fbeb90e9fffd95dbef2236 (patch) | |
| tree | 63bb7ff97f1fa3eafe1d149c459e1199a39f496d /README | |
| parent | b82e66c2f41f9f8fb14391926e9e716c2ab18271 (diff) | |
| download | libnvxx-cb67970c007f4bc965fbeb90e9fffd95dbef2236.tar.gz libnvxx-cb67970c007f4bc965fbeb90e9fffd95dbef2236.tar.bz2 | |
README: mention the iterator interface
Diffstat (limited to 'README')
| -rw-r--r-- | README | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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? |
