Commit Graph
17 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
Yuriy Chernyshov 7012619c80 Add missing include 2025-05-05 18:01:59 +02:00
fanquake e8ba63c4ad refactor: use core/enable_if over utility/enable_if 2022-08-30 17:28:54 +01:00
Marshall Clow 9ef3df0d0b Update header files to always include boost/config.hpp. Fixes issue #61 2019-12-03 08:33:05 -08:00
Daniela Engert 56d88410c6 fix narrowing conversions
Signed-off-by: Daniela Engert <dani@ngrt.de>
2017-04-22 18:35:17 +02:00
Marshall Clow e442420d49 Change name of (another) parameter; fixes 'shadowing' warning (Trac #12623) 2016-11-25 20:50:53 -08:00
Marshall Clow 42db8a4403 Change name of parameter; fixes 'shadowing' warning (Trac #12623) 2016-11-25 08:11:01 -08:00
Marshall Clow 205f5ff4bb Update searchers to return a pair of iterators 2016-02-15 22:23:58 -08:00
Marshall Clow 782d7665dc Comment out unused parameter to silence a warning. Thanks to @meetingcpp for the report 2016-02-07 13:20:22 -05:00
jzmaddock eb9079c49c Remove use of deprecated TR1 library. 2014-09-27 13:13:27 +01:00
Marshall Clow bc3b806f56 Fixed some file perms that got munged in the git conversion. 2014-02-04 08:13:44 -08:00
Marshall Clow 1529f909a6 In c++11, use std:: instead of std::tr1:: stuff
[SVN r83491]
2013-03-18 20:29:56 +00:00
Marshall Clow 223e6e1826 Encoded URL to remove non-ascii char from source; Refs #7781
[SVN r81824]
2012-12-10 15:36:19 +00:00
Marshall Clow 5084a5d228 Add missing includes; Refs #7399. Thanks to Hideaki Takei for the catch
[SVN r80616]
2012-09-21 14:22:31 +00:00
Marshall Clow a0ee93ff89 Fixed range-based versions of Boyer-Moore; Added range-based versions of Boyer-Moore-Horspool and Knuth-Pratt-Morris; Refs #7104; will close when merged to release. Thanks to Akira Takahashi for the bug report!
[SVN r79380]
2012-07-09 14:27:00 +00:00
Marshall Clow ea13506795 Cleaned up things that the inspect tool found in Boost.Algorithm. No functionality change
[SVN r78687]
2012-05-27 15:24:09 +00:00
Marshall Clow d518994247 Initial checkin of Boost.Algorithm searching and clamp code and tests; docs and more Algos coming
[SVN r76388]
2012-01-09 17:21:04 +00:00