Commit Graph

4 Commits

Author SHA1 Message Date
Florian Albrechtskirchinger
f898c19aca
Add apply*() functions (visitor pattern)
Add 3 variants of apply*() functions that invoke a given callable with
the supplied arguments and the stored JSON value.

* void apply(Fn, Args...):
  ...

* void apply_cb(ResultCallback, Fn, Args...):
  ...

* R apply_r(Fn, Args...):
  ...
2022-05-03 21:35:51 +02:00
Florian Albrechtskirchinger
ef210bec52
Update documentation 2022-05-02 06:45:15 +02:00
Florian Albrechtskirchinger
4120c2e01c
Add C++20 3-way comparison operator and fix broken comparisons
Fixes #3207.
Fixes #3409.
2022-05-02 06:45:10 +02:00
Niels Lohmann
b21c345179
Reorganize directories (#3462)
* 🚚 move files
* 🚚 rename doc folder to docs
* 🚚 rename test folder to tests
2022-05-01 09:41:50 +02:00