diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2020-08-22 21:37:42 +0200 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2020-08-22 21:44:17 +0200 |
commit | c75ef102c4b24c89f28a4773d7758adcbf4b6846 (patch) | |
tree | 293e21f7dc870ec2476568dafb04534de681974a /lib/util.h | |
parent | 8fa7dae82ac8e49b2a965377a663aedd08a5230b (diff) | |
download | libquotient-c75ef102c4b24c89f28a4773d7758adcbf4b6846.tar.gz libquotient-c75ef102c4b24c89f28a4773d7758adcbf4b6846.zip |
Cleanup and some extra comments
Diffstat (limited to 'lib/util.h')
-rw-r--r-- | lib/util.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -200,6 +200,10 @@ using fn_arg_t = // TODO: get rid of it as soon as Apple Clang gets proper deduction guides // for std::function<> +// ...or consider using QtPrivate magic used by QObject::connect() +// since wrap_in_function() is actually made for qt_connection_util.h +// ...for inspiration, also check a possible std::not_fn implementation at +// https://en.cppreference.com/w/cpp/utility/functional/not_fn template <typename FnT> inline auto wrap_in_function(FnT&& f) { @@ -217,7 +221,7 @@ inline auto operator"" _ls(const char* s, std::size_t size) */ template <typename ArrayT> class Range { - // Looking forward to C++23 ranges + // Looking forward to C++20 ranges using iterator = typename ArrayT::iterator; using const_iterator = typename ArrayT::const_iterator; using size_type = typename ArrayT::size_type; |