Opened 9 years ago

Closed 9 years ago

#9010 closed Bugs (fixed)

typo in the documentation of one_of

Reported by: kariya_mitsuru@… Owned by: Marshall Clow
Milestone: To Be Determined Component: algorithm
Version: Boost 1.54.0 Severity: Cosmetic
Keywords: doc Cc:

Description

Index: doc/one_of.qbk
===================================================================
--- doc/one_of.qbk      (revision 85368)
+++ doc/one_of.qbk      (working copy)
@@ -75,7 +75,7 @@

 * `one_of` and `one_of_equal` both return false for empty ranges, no matter what is passed to test against.

-* The second parameter to `one_of_value` is a template parameter, rather than deduced from the first parameter (`std::iterator_traits<InputIterator>::value_type`) because that allows more flexibility for callers, and takes advantage of built-in comparisons for the type that is pointed to by the iterator.  The function is defined to return true if, for one element in the sequence, the expression `*iter == val` evaluates to true (where `iter` is an iterator to each element in the sequence)
+* The last parameter to `one_of_equal` is a template parameter, rather than deduced from the first parameter (`std::iterator_traits<InputIterator>::value_type`) because that allows more flexibility for callers, and takes advantage of built-in comparisons for the type that is pointed to by the iterator.  The function is defined to return true if, for one element in the sequence, the expression `*iter == val` evaluates to true (where `iter` is an iterator to each element in the sequence)

 [endsect]

Change History (2)

comment:1 by Marshall Clow, 9 years ago

(In [85397]) Fixed typo "one_of_value" --> "one_of_equal". Refs #9010

comment:2 by Marshall Clow, 9 years ago

Resolution: fixed
Status: newclosed

Merged to release in [86200]

Note: See TracTickets for help on using tickets.