Commit Graph
297 Commits
Author SHA1 Message Date
Anton Karpov db783f5815 Fix \fn and \param tags in the searching algorithms
The four searchers share copied comment blocks, and three of them kept
names from a function they no longer describe.

boyer_moore and knuth_morris_pratt document a predicate parameter Pred p
that none of the operators or do_search overloads take. boyer_moore also
names the block \fn operator while it sits on do_search, and so does one
of the two blocks in knuth_morris_pratt, where the real third parameter
is k_corpus_length rather than p. boyer_moore_horspool documents
k_corpus_length on a do_search that takes two arguments.

The correct form is already in the same family: boyer_moore.hpp:73 and
boyer_moore_horspool.hpp:68 both name two parameters and no predicate.
2026-08-05 06:16:33 +03:00
Anton Karpov bdaee1f3f6 [doc] Fix the parameter names documented for is_permutation
The three-argument overload documents `\param last2`, but its parameters
are `first1`, `last1`, `first2` — `last2` is a local variable computed
inside the body. The four-argument overload right above it documents
`last1` correctly.

Both `\fn` lines also spell the first two parameters `first` and `last`
while the declarations use `first1` and `last1`.
2026-08-03 16:52:44 +03:00
Yuriy ChernyshovandGitHub 7012619c80 Add missing include 2025-05-05 18:01:59 +02:00
Marshall ClowandGitHub 6eb48dd863 Merge pull request #112 from glywk/develop
Add is_blank() string functor classification
2025-04-13 13:46:42 -07:00
Alexandre HamezandGitHub 35a55238a7 Fix documentation for trim_all and trim_fill 2025-01-13 11:20:30 +01:00
jiayuehuaandglywk 3401f0398f fix range-base gather algorithm 2023-07-27 01:04:04 +02:00
jiayuehua d1ecc8b0a8 fix range-base gather algorithm 2023-05-08 11:06:15 +08:00
glywk 1d9706feb7 Add is_blank classifier 2023-01-21 00:42:52 +01:00
Denis MikhailovandGitHub 6d58f2b9d1 Update is_palindrome.hpp 2022-10-12 19:53:19 +06:00
fanquake e8ba63c4ad refactor: use core/enable_if over utility/enable_if 2022-08-30 17:28:54 +01:00
Marshall ClowandGitHub 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
Jonathan Gopel 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
Marshall ClowandGitHub 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
Jonathan Gopel 6b7a38f639 Add documentation to transform_exclusive_scan
Problem:
- There is no documentation for the existing functions. This will make
  it harder for users to consume these functions, espcially as new
  variants are added.

Solution:
- Add documentation.
2022-06-05 23:25:11 +00:00
Jonathan Gopel 02f436c25d Add documentation to transform_inclusive_scan
Problem:
- There is no documentation for the existing functions. This will make
  it harder for users to consume these functions, especially as new
  variants are added.

Solution:
- Add documentation.
2022-06-05 14:40:24 +00:00
Antony Polukhin a9cd6c353f fix -Wdeprecated-copy warnings in string algorithms 2021-10-03 17:16:12 +03:00
Ivan Matek 9d5ddb6a7a update authors 2021-09-13 00:28:03 +02:00
Ivan Matek 9031f17bb8 update CR 2021-09-13 00:22:03 +02:00
Ivan Matek 0c2e904c0d fix comments for type_identity 2021-08-31 21:57:03 +02:00
Ivan Matek d717d999be boost::type_identity modernization 2021-08-31 21:45:41 +02:00
Ivan Matek fe66d6211d Merge branch 'develop' into add_is_clamped_to_boost_algorithm 2021-08-30 02:03:13 +02:00
Marshall Clow c5f6f52560 Remove dependency on boost::mpl from 'clamp' and 'is_sorted' 2021-08-29 16:19:52 -07:00
Ivan Matek ba3f706b1d comment uniformization 2021-08-29 23:05:56 +02:00
Ivan Matek 02b05e5e24 rm unneeded include 2021-08-01 00:48:46 +02:00
Ivan Matek 4ad181f464 Add is_clamped.hpp, is_clamped_test.cpp 2021-07-31 21:20:56 +02:00
Edward Diener fc86cd34f7 Remove erroneous inclusion of C++11 type_traits header file. 2020-11-18 12:46:50 -05:00
Marshall Clow 8c26a50a12 Fix incorrect include guards (copypasta). Thanks to Anton Vasin (tony-space) for the bug report and fix 2020-11-12 08:32:46 -08:00
Marshall ClowandGitHub 1e098f39d4 Merge pull request #77 from vgvassilev/patch-2
Add missing include
2020-07-18 06:47:16 -07:00
Vassil VassilevandGitHub 49d284392c Add missing include
This patch allows the header to be built standalone, as part of clang C++ modules builds
2020-07-17 11:06:33 +03:00
Vassil VassilevandGitHub 68100d9198 Add missing includes
This patch allows the header to be built standalone, as part of clang C++ modules builds.
2020-07-17 08:16:46 +03:00
Vassil VassilevandGitHub 4547b1a5fe Add missing include
This patch allows the header to be built standalone, as part of clang C++ modules builds.
2020-07-17 01:52:08 +03:00
Marshall Clow 130e4da8cb Remove empty loop bodies to prevent clang 'extra-semi-stmt warnings'. Thanks to Eugene for the heads-up 2020-05-28 22:05:47 -07:00
Andrey Semashev 8710bbd4b6 Remove a few leftover uses of boost/detail/iterator.hpp. 2020-05-11 18:42:15 +03:00
Andrey Semashev ed4033f0cc Avoid using deprecated header boost/detail/iterator.hpp.
This header is deprecated in favor of <iterator> and will be removed in a
future release. This silences deprecation warnings.
2020-05-11 18:03:41 +03:00
Marshall Clow 6d86fb3aaa Change include of boost/bind.hpp -> boost/bind/bind.hpp. Thanks to Andrey for the suggested patch 2020-04-28 12:41:10 -07:00
Edward Diener 8e23ffde9e Change __BORLANDC__ to BOOST_BORLANDC, which is defined in Boost config for the Embarcadero non-clang-based compilers. 2020-03-30 18:47:19 -04:00
Marshall Clow 9ef3df0d0b Update header files to always include boost/config.hpp. Fixes issue #61 2019-12-03 08:33:05 -08:00
Marshall ClowandGitHub 77bbc6ce43 Merge pull request #49 from Ben10do/feature/forwarding-references
Use forwarding references in string/split.hpp
2019-07-03 07:54:40 -07:00
James E. King III ac1713e130 Enhance CI, add license and readme, and fix a visibility issue 2019-05-03 12:23:41 -04:00
Tinko Bartels f39107f228 Replace broken links. 2019-04-23 13:48:19 +02: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
Ben10do c6f784cb70 Use forwarding references in string/split.hpp
On compilers that support C++11, this allows both lvalues and rvalues to be used as inputs to the split(), find_all(), and ifind_all() functions.

For example, given a function get_string() that returns a std::string, this allows you to write:
boost::split(result, get_string(), boost::is_any_of(" "))
2018-08-01 20:54:17 +01:00
Marshall Clow e4dfe0885f Fix broken link to license file in header comment. NFC 2018-07-30 13:07:36 -07: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 d7d91d431a Add find_not() and the four find_*_backward overloads from Boost.Text. Needs
tests.
2018-05-09 12:08:46 -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