35 Commits
Author SHA1 Message Date
Patrick Pelissier 1eb0e8730d Use algorithm with dictionary too. 2019-03-24 08:38:52 +01:00
Patrick Pelissier 8b3a4a802c Happy new year! 2019-01-02 18:12:07 +01:00
Patrick Pelissier ede57a20be Add ALGO ALGO_INSERT that allows inserting a container into another one. 2018-08-08 22:44:17 +02:00
Patrick Pelissier 79158dabbc Rename _map into _for_each. 2018-07-22 21:32:46 +02:00
Patrick Pelissier 6721a86768 Add method _mismatch and _mismatch_if 2018-07-15 22:34:29 +02:00
Patrick Pelissier 5025b3690d Add test. 2018-07-15 22:26:59 +02:00
Patrick Pelissier 42b37a718f Add test. 2018-07-15 22:26:21 +02:00
Patrick Pelissier fcdfd836ec Add method _count_if 2018-07-15 11:05:58 +02:00
Patrick Pelissier b2f005239b API breakage:
rename _constains into _contain_p
to be more uniform with other predicate functions,
and to use infinitive form for the method.
2018-07-15 10:54:38 +02:00
Patrick Pelissier bc3fa890bd Add method _find_if. 2018-07-15 10:48:22 +02:00
Patrick Pelissier 22f2ae7341 Add methods _all_of_p, _any_of_p and _none_of_p. 2018-07-14 18:21:46 +02:00
Patrick Pelissier cef8a13cc2 Add a new test. 2018-07-14 14:18:25 +02:00
Patrick Pelissier 7815feddba Proper expand algorithms for intrusive list. 2018-05-24 22:58:16 +02:00
Patrick Pelissier 40e9550b29 Generate algo for intrusive list. 2018-05-23 21:10:58 +02:00
Patrick Pelissier 64d0202f95 ALGO macros accept now a type instead of an oplist
if a global oplist has been registered for the type.

Add macro ALGO_LET_INIT_VA which declares, initializes, sets and clears
a container.
2018-05-22 20:39:51 +02:00
Patrick Pelissier 7ccede36b1 Test with deque too. 2018-05-19 12:52:40 +02:00
Patrick Pelissier 2af35673bb Update comments about TODO. 2018-05-15 21:02:34 +02:00
Patrick Pelissier fc4dba4569 Add DSC versions of the _sort function to reverve the sort (DSC=descending). 2018-05-14 23:08:46 +02:00
Patrick Pelissier 5936e25ce4 Add test 2018-03-17 09:24:26 +01:00
Patrick Pelissier 0c2d290835 Add missing copyright notice. 2018-01-29 20:29:54 +01:00
Patrick Pelissier 34943e5b2a Remove array_ prefix from ARRAY_DEF
See commit on shared pointers.
2017-07-27 22:16:15 +02:00
Patrick Pelissier 4cb92a92b8 Remove list_ prefix from all lists.
See commit on shared-pointers.
Rename the iteration type to be prefix by name list_it_name_t ==> name_it_t
2017-07-27 21:40:35 +02:00
Patrick Pelissier 540471b7b8 Add tests for reduce functions 2017-07-15 20:46:02 +02:00
Patrick Pelissier 9ba26ae368 Improve coverage 2017-07-11 23:32:26 +02:00
Patrick Pelissier 672c2d509d Update the way of working of the coverage so that it produces
more useful information about the line coveraged, and avoid
expanding low level macros.
2017-07-10 17:35:16 +02:00
Patrick Pelissier f14e5222ad Add _sort_p algorithm 2017-05-22 18:22:11 +02:00
Patrick Pelissier 3928731a6d Add test for method join. 2017-05-03 22:54:55 +02:00
Patrick Pelissier 117ac89b34 Add tests. 2017-05-03 00:51:26 +02:00
Patrick Pelissier 3bd0744333 Add ALGO_INIT_VA macro. 2017-03-19 19:46:09 +01:00
Patrick Pelissier 9ce1c69753 Add special (and frequent !) handler for functions add, sum, and and or
for the reduction macro.
2017-03-04 19:10:56 +01:00
Patrick Pelissier 85596c1a7a Add ALGO_REDUCE macro 2017-03-03 21:30:38 +01:00
Patrick Pelissier 2af4cb2fc2 WIP: computing coverage of the tests. 2017-03-02 22:35:22 +01:00
Patrick Pelissier b8ade14540 Add ALGO_EXTRACT 2017-02-23 23:07:52 +01:00
Patrick Pelissier 0c22a620b9 Add test for ALGO_MAP
Fix issue with ALGO_MAP.
2017-02-21 20:58:56 +01:00
Patrick Pelissier 8e9d20ba1a Add initial stuff 2017-02-18 18:51:04 +01:00