Commit Graph

184 Commits

Author SHA1 Message Date
Peter Dimov
edcff6fa6f Add test for mp_transform_q 2017-05-25 21:51:40 +03:00
Peter Dimov
6db4019341 Add mp_transform_if_q 2017-05-25 21:31:03 +03:00
Peter Dimov
8621bb33fb Remove mp_plus 4.7 test workarounds 2017-05-24 04:09:11 +03:00
Peter Dimov
3e40aacce5 Document mp_plus 2017-05-24 01:52:11 +03:00
Peter Dimov
07cac40f3d Change mp_and/mp_or to a SFINAE-based implementation 2017-05-23 23:25:30 +03:00
Peter Dimov
29a771aa4e Move integer_sequence and tuple_for_each into mp11 2017-05-23 20:24:37 +03:00
Peter Dimov
7100d10c7e Make mp_infoke SFINAE-friendly 2017-05-19 15:37:49 +03:00
Peter Dimov
1d1be2bbf4 Add mp_eval_if_q 2017-05-19 03:22:53 +03:00
Peter Dimov
02385ac83d SFINAE-fail mp_transform on lists of different sizes 2017-05-18 16:13:55 +03:00
Peter Dimov
611ea810bd SFINAE-fail mp_eval_if when F<U...> is invalid 2017-05-18 15:22:05 +03:00
Peter Dimov
37bbb15375 Make the E parameter of mp_if optional 2017-05-18 14:59:46 +03:00
Peter Dimov
15e45290d0 Add mp_insert, mp_erase 2017-05-13 21:52:56 +03:00
Peter Dimov
647f669353 Add mp_product_q, update documentation 2017-05-13 21:07:54 +03:00
Peter Dimov
4338af3c49 Disable constexpr mp_for_each test on libc++/C++11 due to std::forward not constexpr 2017-05-13 01:41:09 +03:00
Peter Dimov
88dceba219 constexpr tuple<> tp doesn't work on clang < 3.9 2017-05-13 00:14:26 +03:00
Peter Dimov
893d84fda2 Add mp_for_each 2017-05-13 00:10:50 +03:00
Peter Dimov
d97b21261f Add tests for tuple_for_each and empty tuples 2017-05-12 23:37:37 +03:00
Peter Dimov
9fbf51bbcb Remove bind_front functionality from mp_quote 2017-05-12 19:43:03 +03:00
Peter Dimov
543a0f755e Add mp_apply_q 2017-05-12 19:21:27 +03:00
Peter Dimov
939a3b949d Add mp_bind_q, mp_bind_front(_q), mp_bind_back(_q), mp_transform_q 2017-05-09 20:53:00 +03:00
Peter Dimov
28c420edf7 Add mp_same. 2017-04-01 20:01:51 +03:00
Peter Dimov
b02e9fbacc Add mp_bind. 2017-04-01 18:42:11 +03:00
Peter Dimov
c92d314009 Implement mp_transform_if in terms of mp_transform 2017-04-01 18:08:19 +03:00
Peter Dimov
fcbe835f4b Add a variadic mp_transform implementation 2017-04-01 17:39:02 +03:00
Peter Dimov
e871f0c30c Optimize mp_append. 2017-03-27 02:00:48 +03:00
Peter Dimov
c21636d2ce More g++ 4.7 workarounds 2017-03-24 21:53:57 +02:00
Peter Dimov
8999977bdd Try another g++ 4.7 workaround 2017-03-24 21:27:33 +02:00
Peter Dimov
6332db40ab Try a g++ 4.7 workaround 2017-03-24 21:07:23 +02:00
Peter Dimov
e12eb6f774 Update comment in mp_valid.cpp 2017-03-24 18:26:02 +02:00
Peter Dimov
d3f4b099d2 Unroll mp_reverse_fold. 2017-03-24 18:10:07 +02:00
Peter Dimov
e488469e9a Unroll mp_fold. 2017-03-24 17:21:38 +02:00
Peter Dimov
2bf9bad934 Unroll mp_reverse a bit more. 2017-03-24 16:55:06 +02:00
Peter Dimov
c1485d5d51 Improve mp_copy_if, mp_remove(_if), mp_partition 2017-03-24 15:22:10 +02:00
Peter Dimov
42b4561725 Add mp_apply as an alias for mp_rename 2017-03-24 14:26:31 +02:00
Peter Dimov
828dadb167 Unroll mp_append a bit. 2017-03-24 01:15:44 +02:00
Peter Dimov
a2772da6d9 Add a few mp_take tests 2017-03-22 02:30:15 +02:00
Peter Dimov
321a54728f Add indirection in mp_quote to enable expansions of T... into a fixed parameter list 2017-03-20 16:55:00 +02:00
Peter Dimov
71ba80d18a Rename ::invoke to ::fn 2017-03-20 16:23:52 +02:00
Peter Dimov
7e8d618793 Add mp_replace_at(_c) 2017-03-18 20:20:31 +02:00
Peter Dimov
79f8c574f3 Add mp_replace_{front,first,second,third} 2017-03-18 19:58:38 +02:00
Peter Dimov
8e053269a8 Make mp_transform_if variadic. 2017-03-18 19:48:07 +02:00
Peter Dimov
946937b5ab Rename Q::apply to Q::invoke, mp_unquote to mp_invoke. 2017-03-16 21:14:42 +02:00
Peter Dimov
e4f7488652 Change mp_and and mp_or to match std::conjuction and std::disjunction 2017-03-16 17:49:57 +02:00
Peter Dimov
a231733c7e Move everything to namespace mp11 2017-03-15 21:23:15 +02:00
Peter Dimov
adaa60dbc2 Rename mp_find_index to mp_find 2017-03-15 20:03:56 +02:00
Peter Dimov
8d9e6f50dd Add arguments to mp_quote, allowing partial application 2017-03-15 18:09:30 +02:00
Peter Dimov
5a4fb7f832 Fix function application in mp_map_update 2017-03-14 22:40:47 +02:00
Peter Dimov
6fb4cee7b2 Add mp_transform_if, mp_map_update 2017-03-14 16:32:17 +02:00
Peter Dimov
c054b2b2fe Add mp_map_erase. 2017-03-14 02:56:32 +02:00
Peter Dimov
42405ac701 Add mp_map_replace. 2016-11-17 03:38:24 +02:00
Peter Dimov
4a7008562f Add mp_map_insert. 2016-11-17 02:51:12 +02:00
Peter Dimov
f6c38bb33f Add mp_map_contains. 2016-11-17 02:06:38 +02:00
Peter Dimov
9735300f85 Add mp_map_find. 2016-11-17 02:01:50 +02:00
Peter Dimov
7a0f4001e7 Add mp_all, mp_and, mp_any, mp_or; move mp_not to integral.hpp. 2016-11-16 21:24:13 +02:00
Peter Dimov
29d030ac59 Add mp_all_of, mp_any_of, mp_none_of. 2016-11-16 04:19:37 +02:00
Peter Dimov
4b426c4fce Add more -std variants to .travis.yml; disable constexpr tuple_for_each test on libc++11 2016-11-15 21:34:15 +02:00
Peter Dimov
01f376b83d Disable std::tuple<std::unique_ptr> test on clang++ below 3.8 2016-11-15 20:23:06 +02:00
Peter Dimov
db2384ecd4 Remove clang-3.5,3.9 from .travis.yml; extend g++ workaround in mp_valid to 6.x 2016-11-15 20:00:58 +02:00
Peter Dimov
b88bb0654b g++ at 5.4.0 still doesn't like mp_valid<add_reference> 2016-10-23 18:14:03 +03:00
Peter Dimov
6af4bbc113 Add mp_quote, mp_unquote. 2015-07-26 17:55:05 +03:00
Peter Dimov
d314c868bf Fix include order. 2015-07-26 17:47:31 +03:00
Peter Dimov
e51ed6cf3d Remove mp_defer_if_valid; add mp_identity_t. 2015-07-26 17:43:00 +03:00
Peter Dimov
e6f83a0d33 Add mp_unique. 2015-07-24 13:45:08 +03:00
Peter Dimov
26575249ff Add mp_set_contains, mp_set_push_back, mp_set_push_front. 2015-07-24 13:19:17 +03:00
Peter Dimov
5de3bf8810 Add mp_fold, mp_reverse_fold. 2015-07-24 02:11:40 +03:00
Peter Dimov
67ef9ab3fb Add mp_remove, mp_reverse. 2015-07-24 01:17:16 +03:00
Peter Dimov
61b897e857 Add mp_valid, mp_defer, mp_defer_if_valid. 2015-07-16 00:40:40 +03:00
Peter Dimov
a5dd767f93 Fix include order. 2015-07-16 00:39:14 +03:00
Peter Dimov
12387884c5 Fix include order. 2015-07-15 23:52:39 +03:00
Peter Dimov
c9d1562cee Add mp_find, mp_find_if. 2015-07-15 18:11:16 +03:00
Peter Dimov
f1b097eb06 Add mp_find_index_if. 2015-07-15 17:30:07 +03:00
Peter Dimov
856ae3dc6c Add mp_find_index. 2015-07-15 17:14:00 +03:00
Peter Dimov
baaead6860 Add mp_copy_if, mp_remove_if, mp_partition, mp_sort. 2015-06-24 16:05:47 +03:00
Peter Dimov
05ab3e7a42 Add tuple_for_each. 2015-06-24 14:57:32 +03:00
Peter Dimov
4a33810f9b Add mp_replace, mp_replace_if. 2015-06-23 16:26:56 +03:00
Peter Dimov
4094f2f73f Add mp_iota, mp_at, mp_take. 2015-06-22 03:37:15 +03:00
Peter Dimov
8bf6feb206 Add mp_drop. 2015-06-22 02:42:37 +03:00
Peter Dimov
cf49d00e45 Add integer_sequence.hpp. 2015-06-22 02:23:20 +03:00
Peter Dimov
d5f6ca8eb6 Add mp_product. 2015-06-22 00:46:24 +03:00
Peter Dimov
782894ebfb Add test for mp_contains. 2015-06-22 00:10:24 +03:00
Peter Dimov
138e4de0a8 Add tests for mp_count, mp_count_if. 2015-06-22 00:06:50 +03:00
Peter Dimov
894f6cf129 Add test for mp_transform. 2015-06-21 21:12:28 +03:00
Peter Dimov
b4c3f29917 Move algorithms to algorithm.hpp. 2015-06-21 20:47:04 +03:00
Peter Dimov
686e398e56 Initial commit. 2015-06-21 19:53:23 +03:00