e4d4a685da
Fix MSVC warnings in tests
...
MSVC complains about narrowing conversions and unreferences parameters.
This makes all tests almost level 4 warning clean on MSVC 14.
2022-12-30 23:02:32 +01:00
12ade334e0
Merge pull request #100 from jgopel/copy-if-while
...
Implement copy_if_while and copy_if_until
2022-06-28 17:46:45 -07:00
eec00d8421
Implement copy_if_while and copy_if_until
...
Problem:
- There is no way to signal that a copy should proceed, selecting
elements by a predicate until some condition is met. This is useful
for patterns along the lines of "copy selected elements until there
are n total elements in the output".
Solution:
- Introduce `copy_if_while()` and `copy_if_until()`.
2022-06-24 16:48:44 +00:00
055ebaa4cd
Merge pull request #56 from jeking3/ci
...
Enhance CI, add license and readme, and fix some issues
2022-06-23 21:14:22 -07:00
9031f17bb8
update CR
2021-09-13 00:22:03 +02:00
2409048368
fix spaceship detection macros, add tests for point interval and first argument determines type
2021-08-31 21:39:59 +02:00
aab7e1c121
fix spaceship support macro check, proper order of includes in test
2021-08-29 23:02:22 +02:00
4ad181f464
Add is_clamped.hpp, is_clamped_test.cpp
2021-07-31 21:20:56 +02:00
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
ac1713e130
Enhance CI, add license and readme, and fix a visibility issue
2019-05-03 12:23:41 -04:00
b6c04d6dc5
Make apply_permutation work for C++03. Thanks to @jeking3 for the report.
2018-10-30 15:23:29 -07:00
01b0dd8648
fix extraneous colon in test jamfile causing a build warning
2018-10-30 15:30:23 +00:00
6bb5fa5ee0
Remove 'wrappers'
2018-07-04 11:24:01 -07:00
3f2a962ace
East const -> west const. I regret nothing!
2018-05-14 19:19:52 -05:00
c5c5d24ff3
Add range-based overloads of find*_backward().
2018-05-12 16:04:12 -05:00
6c68cf8624
Add range-based overload of find_not().
2018-05-12 16:04:01 -05:00
94460b0ca5
Add tests for find_backward.hpp.
2018-05-10 17:56:16 -05:00
45a4d2580c
Add tests for find_not.hpp.
2018-05-10 13:21:21 -05:00
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
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
cb52d61054
Merge pull request #39 from ZaMaZaN4iK/feature_branch/apply_permutation
...
Apply_permutation
2017-11-01 12:57:31 -07:00
0539e0d84a
Copy-and-paste error ...
...
Signed-off-by: Daniela Engert <dani@ngrt.de >
2017-10-08 10:33:22 +02:00
7df35ffd56
Different fixes
2017-08-30 20:25:15 +03:00
554db2f07d
Merge pull request #35 from very-cool-name/apolukhin/constexpr
...
Apolukhin/constexpr
2017-08-29 09:07:59 -07:00
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
15c7ff3828
Fixed compatibility with old compilers
2017-07-19 02:15:06 +03:00
f14719c3a9
Replace an assert in a test with BOOST_CHECK
2017-06-28 10:04:25 -07:00
6bd8bc197a
use boost::algorithm::iota in the tests instead of std::iota, which requires C++11
2017-06-28 07:58:21 -07:00
334737eebe
Implement the C++17 new algorithms
2017-06-27 16:43:17 -07:00
000040b3d9
binary_function is removed from equal and unary_function removed from tests.
2017-06-19 19:03:00 +03:00
e07e8e65c6
Fixed references
2017-05-19 18:50:03 -06:00
1970454ecb
Added test
2017-05-18 23:33:26 -06:00
d6b7f3da90
Use boost::begin/end instead of macros
2017-05-03 22:38:21 -07:00
0e62dfb92e
Merge pull request #33 from ZaMaZaN4iK/feature_branch/is_partitioned_until
...
is_partitioned_until support
2017-05-03 18:15:09 -07:00
968d30e9e3
Merge branch 'develop' into apolukhin/constexpr
2017-04-10 12:16:38 +03:00
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
383e800df9
Added examples, tests, doc
2017-02-14 15:59:07 +03:00
9b19fc00c2
use std::shuffle instead of random_shuffle in C++11 and later
2016-11-20 17:24:19 -08:00
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
b3dabe10e4
Add missing error_info include
2016-08-17 13:54:58 -07:00
f1e9d3140c
Made is_palindrome work for C++03
2016-08-17 13:49:16 -07:00
ff79a9c2db
Updated tests
2016-08-16 16:22:01 +03:00
3c25ce1090
Added C-String support for 'is_palindrome'
...
Updated doc, example and tests.
2016-08-16 05:14:56 +03:00
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
366274ff0a
Added new tests to is_palindrome_test
...
Added evenNonPalindrome and oddPalindrome tests.
2016-07-06 22:56:02 +03:00
1ec1cd3045
Fixed is_palindrome_test
2016-07-06 11:57:05 +03:00
9bee197bd8
Added all files to the new repository
2016-07-06 11:42:18 +03:00
3cedd051fa
Test coverage for algorithm::hex_lower, adapting existing coverage for algorithm::hex
2016-03-08 09:47:52 +10:00
205f5ff4bb
Update searchers to return a pair of iterators
2016-02-15 22:23:58 -08:00
8d095e9d30
Added constexpr modifiers for C++14 mode and some tests
2016-01-25 13:11:01 +03:00