Commit Graph

83 Commits

Author SHA1 Message Date
Marshall Clow
0a57ec30a2 Update the apply_permutation tests to use the BOOST_CHECK_EQUAL_COLLECTIONS facilities. Based on https://github.com/boostorg/algorithm/pull/42 Thanks to Jeremy for the patch 2019-07-03 07:44:25 -07:00
Marshall Clow
b6c04d6dc5 Make apply_permutation work for C++03. Thanks to @jeking3 for the report. 2018-10-30 15:23:29 -07:00
James E. King III
01b0dd8648 fix extraneous colon in test jamfile causing a build warning 2018-10-30 15:30:23 +00:00
Marshall Clow
6bb5fa5ee0 Remove 'wrappers' 2018-07-04 11:24:01 -07:00
Zach Laine
3f2a962ace East const -> west const. I regret nothing! 2018-05-14 19:19:52 -05:00
Zach Laine
c5c5d24ff3 Add range-based overloads of find*_backward(). 2018-05-12 16:04:12 -05:00
Zach Laine
6c68cf8624 Add range-based overload of find_not(). 2018-05-12 16:04:01 -05:00
Zach Laine
94460b0ca5 Add tests for find_backward.hpp. 2018-05-10 17:56:16 -05:00
Zach Laine
45a4d2580c Add tests for find_not.hpp. 2018-05-10 13:21:21 -05:00
Marshall Clow
3af7acabc7 fix constexpr-ness of a couple of algorithhms - and tests. Based on Pull Request #44 by Flast - thanks! 2018-04-04 11:18:38 -07:00
Daniela Engert
b0f04afcb0
functions used in constexpr context must be marked 'constexpr'
Signed-off-by: Daniela Engert <dani@ngrt.de>
2018-03-25 17:46:15 +02:00
Marshall Clow
cb52d61054
Merge pull request #39 from ZaMaZaN4iK/feature_branch/apply_permutation
Apply_permutation
2017-11-01 12:57:31 -07:00
Daniela Engert
0539e0d84a
Copy-and-paste error ...
Signed-off-by: Daniela Engert <dani@ngrt.de>
2017-10-08 10:33:22 +02:00
Alexander Zaitsev
7df35ffd56 Different fixes 2017-08-30 20:25:15 +03:00
Marshall Clow
554db2f07d Merge pull request #35 from very-cool-name/apolukhin/constexpr
Apolukhin/constexpr
2017-08-29 09:07:59 -07:00
Daniela Engert
8ae18ae455 Conditionally replace deprecated c++98 features by c++11 ones
change std::random_shuffle -> std::shuffle + random_engine if indicated by the supported language level or Boost configuration macro.

Signed-off-by: Daniela Engert <dani@ngrt.de>
2017-07-20 16:33:17 +02:00
Alexander Zaitsev
15c7ff3828 Fixed compatibility with old compilers 2017-07-19 02:15:06 +03:00
Marshall Clow
f14719c3a9 Replace an assert in a test with BOOST_CHECK 2017-06-28 10:04:25 -07:00
Marshall Clow
6bd8bc197a use boost::algorithm::iota in the tests instead of std::iota, which requires C++11 2017-06-28 07:58:21 -07:00
Marshall Clow
334737eebe Implement the C++17 new algorithms 2017-06-27 16:43:17 -07:00
Mike Maximoff
000040b3d9 binary_function is removed from equal and unary_function removed from tests. 2017-06-19 19:03:00 +03:00
Alexander Zaitsev
e07e8e65c6 Fixed references 2017-05-19 18:50:03 -06:00
Alexander Zaitsev
1970454ecb Added test 2017-05-18 23:33:26 -06:00
Marshall Clow
d6b7f3da90 Use boost::begin/end instead of macros 2017-05-03 22:38:21 -07:00
Marshall Clow
0e62dfb92e Merge pull request #33 from ZaMaZaN4iK/feature_branch/is_partitioned_until
is_partitioned_until support
2017-05-03 18:15:09 -07:00
very-cool-name
968d30e9e3 Merge branch 'develop' into apolukhin/constexpr 2017-04-10 12:16:38 +03:00
MMaximoff
dfa332e915 Updated constexpr tests for all affected modules. Added conditional constexpr to equal, which uses std::distance. 2017-04-07 22:31:23 +03:00
Alexander Zaitsev
383e800df9 Added examples, tests, doc 2017-02-14 15:59:07 +03:00
Marshall Clow
9b19fc00c2 use std::shuffle instead of random_shuffle in C++11 and later 2016-11-20 17:24:19 -08:00
Marshall Clow
7977bd0cdc Remove all mentions of (unary|binary)_function; not needed and they have been removed for C++17 2016-11-20 17:02:49 -08:00
Marshall Clow
b3dabe10e4 Add missing error_info include 2016-08-17 13:54:58 -07:00
Marshall Clow
f1e9d3140c Made is_palindrome work for C++03 2016-08-17 13:49:16 -07:00
Alexander
ff79a9c2db Updated tests 2016-08-16 16:22:01 +03:00
Alexander Zaitsev
3c25ce1090 Added C-String support for 'is_palindrome'
Updated doc, example and tests.
2016-08-16 05:14:56 +03:00
Alexander
093900a8f3 [micro] Replaced constructor of singleElement
Replaced bracket initializes constructor to simply constructor with two arguments in std::vector
2016-07-11 18:25:04 +03:00
Alexander
366274ff0a Added new tests to is_palindrome_test
Added evenNonPalindrome and oddPalindrome tests.
2016-07-06 22:56:02 +03:00
Alexander Zaitsev
1ec1cd3045 Fixed is_palindrome_test 2016-07-06 11:57:05 +03:00
Alexander Zaitsev
9bee197bd8 Added all files to the new repository 2016-07-06 11:42:18 +03:00
Nigel Stewart
3cedd051fa Test coverage for algorithm::hex_lower, adapting existing coverage for algorithm::hex 2016-03-08 09:47:52 +10:00
Marshall Clow
205f5ff4bb Update searchers to return a pair of iterators 2016-02-15 22:23:58 -08:00
Antony Polukhin
8d095e9d30 Added constexpr modifiers for C++14 mode and some tests 2016-01-25 13:11:01 +03:00
Marshall Clow
1a79438687 New algorithm 'partition_subrange'. Name not 100% final, bue we've got tests. No docs yet. 2015-10-01 11:59:31 -07:00
Marshall Clow
7a2ae62f22 Added new algorithm 'sort_subrange' from Sean Parent's CppCon keynote. Docs to come 2015-09-28 10:28:05 -07:00
Thomas Trummer
3acaddd044 Add missing include for std::multiplies and std::plus 2015-05-17 19:59:08 +02:00
Marshall Clow
d4734356e9 Added more general power functionality as requested by Sean Parent. Also added enable_if to make sure the exponent is an integral type. 2014-12-03 15:15:15 -08:00
Marshall Clow
0c3f9a38f4 Add new algorithm boost::power, which raises a number to an integer power 2014-12-02 14:38:25 -08:00
Marshall Clow
0a55238652 Removed some debugging code from the test 2014-09-24 10:33:46 -07:00
Marshall Clow
b9d91c59e4 Add missing ::type in the range-based partition_point implementation. Add test for this call - since there was none before. Thanks to Wygos for the fix. 2014-06-18 19:16:34 +02:00
Marshall Clow
0f63883818 Rework the file layout and implementation of 'is_permutation' to match the various versions of the C++ standard. In particular, move the four iterator versions into the cxx14/ directory. 2014-03-23 14:56:48 -07:00
Marshall Clow
bc3b806f56 Fixed some file perms that got munged in the git conversion. 2014-02-04 08:13:44 -08:00