aboutsummaryrefslogtreecommitdiff
path: root/gtad
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-01-23 17:11:22 +0100
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-01-23 17:12:08 +0100
commitabbab8d8f8c566bc2c9cdf766c6fbb11d978ca47 (patch)
tree07623282baa91122528a9b553370f8bb6195bfa0 /gtad
parent63c953800330017ebb2afbabf41e5c4932c4d640 (diff)
downloadlibquotient-abbab8d8f8c566bc2c9cdf766c6fbb11d978ca47.tar.gz
libquotient-abbab8d8f8c566bc2c9cdf766c6fbb11d978ca47.zip
Omittable: split out from util.h and refresh
Improvements: - Quotient::lift() - a way to invoke a function on an optional (including Omittable) or a pointer if it's 'truthy'. Doesn't need enhanced function_traits<>, only the standard library; works on any number of arguments that can be dereferenced and casted to bool. - then() - the version of lift() as a member function. - edit() was renamed to ensure() (edit() might become a read-write counterpart of then() at some point). It's not really used across libQuotient codebase (or elsewhere) but is staying there just in case. It can also accept an initializer, removing the requirement of default-constructibility. - Quotient::merge() is simplified, with one universal implementation covering both Omittable/optional and plain values. - All that now lives in its dedicated pair of files, further decluttering util.h
Diffstat (limited to 'gtad')
-rw-r--r--gtad/gtad.yaml2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtad/gtad.yaml b/gtad/gtad.yaml
index 943ac013..03c23886 100644
--- a/gtad/gtad.yaml
+++ b/gtad/gtad.yaml
@@ -45,7 +45,7 @@ analyzer:
types:
- +set: &UseOmittable
useOmittable:
- omittedValue: 'none' # Quotient::none in lib/util.h
+ omittedValue: 'none' # Quotient::none in lib/omittable.h
+on:
- integer:
- int64: qint64