Mat Sutcliffe
68a49e646e
Convenience utilities
2021-07-13 17:56:32 +01:00
Mat Sutcliffe
33209fa1eb
Use std::as_const (C++17 feature)
2021-07-13 17:56:31 +01:00
Mat Sutcliffe
d7a461ff7a
Use if constexpr (C++17 feature)
2021-07-13 17:56:30 +01:00
Mat Sutcliffe
5d67cd9f68
Use _v traits variable aliases (C++17 feature)
2021-07-13 17:56:29 +01:00
Mat Sutcliffe
2dc86652c2
Issue #77 Include style
2020-08-28 00:45:26 +01:00
Mat Sutcliffe
7ea9e7c2b2
Adjusted CRange nested typedefs, and protection against T700
2019-09-16 22:40:44 +01:00
Mat Sutcliffe
e9a4c49d68
Ref T547 Update license masthead in all source code files.
2019-02-22 20:36:43 +00:00
Mat Sutcliffe
3b07618830
Ref T482 Enable makeKeysRange and makePairsRange for non-const lvalues.
2019-02-22 20:34:55 +00:00
Mat Sutcliffe
462172a87f
Fixed clazy warnings: unnecessary containers and containers being detached in range-for loops.
2019-02-22 20:23:37 +00:00
Klaus Basan
3aadef458d
Ref T298, utility functions for matcher setup and more attributes to configure matching
...
* pick strategy if multiple there are multiple similar results
* ordered results
2018-08-11 00:54:48 +02:00
Mathew Sutcliffe
921ef30eda
Use C++14 features to simplify our container base classes
...
Summary: Using C++14 function return type deduction we can simplify the CRTP in CContainerBase etc.
Reviewers: #swift_developers, rwinklmeier
Reviewed By: #swift_developers, rwinklmeier
Subscribers: jenkins
Tags: #swift_pilot_client
Differential Revision: https://dev.swift-project.org/D65
2017-11-23 21:59:09 +00:00
Mathew Sutcliffe
fce1513dae
refs #937 Resolved clazy warnings: unnecessary detaching of containers.
2017-04-19 19:31:38 +01:00
Mathew Sutcliffe
4d30ce40c7
refs #852 Added reverse iterators to CRange and CSequence.
2017-02-24 00:17:44 +00:00
Mathew Sutcliffe
1f54bbc0d5
refs #800 Removed redundant semi-colons, etc.
2016-12-13 19:00:30 +01:00
Mathew Sutcliffe
4071fcb6d3
Fixed mistake.
2016-08-26 21:04:44 +01:00
Mathew Sutcliffe
a0c20baf53
refs #697 Type traits renamed with T prefix.
2016-08-03 02:20:45 +01:00
Mathew Sutcliffe
b449487a71
refs #715 Support implicit conversion from CRange to QSet.
2016-07-29 17:09:05 +01:00
Mathew Sutcliffe
bf61657376
refs #698 Added equalsBy and equalsByKeys methods for containers.
2016-07-04 23:42:20 +01:00
Mathew Sutcliffe
e20c8bbcbd
Doxygen style.
2016-07-04 23:40:30 +01:00
Mathew Sutcliffe
05b5971caf
refs #646 Log messages when saving and loading data cache values.
2016-05-22 15:34:05 +01:00
Mathew Sutcliffe
a895cc2c54
refs #624 Removed many workarounds, no longer needed.
2016-03-22 16:02:58 +00:00
Mathew Sutcliffe
a8fc899219
refs #624 Use std alias traits.
2016-03-22 16:02:48 +00:00
Mathew Sutcliffe
c26a6fef8b
refs #624 Use noexcept instead of Q_DECL_NOEXCEPT.
2016-03-19 21:07:15 +00:00
Mathew Sutcliffe
96d9fffcd7
refs #624 Use constexpr instead of Q_CONSTEXPR.
2016-03-19 20:40:03 +00:00
Mathew Sutcliffe
f9ee637a1e
refs #583 as_const
2016-02-06 19:45:43 +00:00
Mathew Sutcliffe
86913471a9
refs #481 Algorithms to copy random elements from containers.
2015-11-19 21:02:55 +00:00
Mathew Sutcliffe
64a25a7860
refs #466 Resolved TODO items in containers.
2015-11-19 21:00:56 +00:00
Mathew Sutcliffe
d8091df47d
refs #414 Efficient findFirstBy methods in CRangeBase.
2015-06-02 18:53:33 +01:00
Mathew Sutcliffe
36d116b4e9
refs #413 Removed one overload of CRange::findBy and one of CSequence::applyIf; they were never used and they caused a circular dependency.
...
Templatized another overload of applyIf to break a circular dependency.
2015-05-12 20:37:53 +01:00
Roland Winklmeier
a089d3641d
refs #403 add BlackMisc shared library build
2015-05-05 21:34:19 +02:00
Mathew Sutcliffe
60e1f306f6
Fix for CRange::frontOrDefault to support classes with defaulted (C++11 §8.4.2/4) default constructors.
2014-11-15 13:34:35 +00:00
Klaus Basan
4b50134d2a
refs #325 , refs #330 fixed apply method to return list of changed properties
...
* changed CValueObject apply
* created CIndexPropertyList
* renamed CIndexVariantMap to CPropertyIndexVariantMap
2014-10-07 13:10:33 +02:00
Klaus Basan
3fb5087ea8
Renaming, header, Doxygen, formatting (during refs #314 )
2014-08-24 02:45:52 +02:00
Mathew Sutcliffe
d6234ee2cd
refs #311 added initializer_list constructors in containers
2014-08-06 17:29:20 +01:00
Mathew Sutcliffe
db6c6a6331
fixing GCC and Clang warnings and errors
2014-07-16 22:18:13 +01:00
Mathew Sutcliffe
f05c31871a
added sanity checks in ConditionalIterator
2014-07-14 23:30:11 +01:00
Mathew Sutcliffe
101c5a4f98
refs #290 using a CRange of iterator adaptors to return from the primary predicate-based methods of CRangeBase without copying elements
2014-07-13 20:30:20 +01:00
Mathew Sutcliffe
a6fad0508f
refs #290 added CRange, a conceptual container constructed from a begin and end iterator of a real container,
...
which allows making a pseudo-copy of a container without copying the elements inside
2014-07-13 20:30:17 +01:00
Mathew Sutcliffe
32e3c0298c
refs #290 Preparatory to adding CRange, refactored all const algorithm-based methods from CContainerBase into a common base class CRangeBase
2014-07-13 20:30:16 +01:00