Boost C++ Libraries: Ticket #2500: A minor bug in documentation to MinMax feature (boost/algorithm/minmax_element.hpp) https://svn.boost.org/trac10/ticket/2500 <p> Please fix a bug in documentation to <a class="missing wiki">MinMax</a> feature of BOOS library. </p> <p> Bug position.<br /> <a href="http://www.boost.org/doc/libs/1_37_0/libs/algorithm/minmax/index.html">http://www.boost.org/doc/libs/1_37_0/libs/algorithm/minmax/index.html</a> </p> <p> The exact online address of erroneous place:<br /> <a href="http://www.boost.org/doc/libs/1_37_0/libs/algorithm/minmax/index.html#description">http://www.boost.org/doc/libs/1_37_0/libs/algorithm/minmax/index.html#description</a> </p> <p> What is wrong.<br /> Here is an excerpt from aforementioned paragraph:<br /> “The family of algorithms comprising first_min_first_max_element, first_min_first_max_element, first_min_first_max_element, and first_min_first_max_element can be described generically as follows (using which and what for first or last): which_min_what_max_element finds the (first or last, according to which) smallest element and the (first or last, according to what) largest element in the range [first, last).” </p> <p> If you pay attention you can notice that the statement<br /> “first_min_first_max_element”<br /> is repeated 4 times with no change. </p> <p> Corrected sentence is:<br /> The family of algorithms comprising first_min_first_max_element, first_min_last_max_element, last_min_first_max_element, and last_min_last_max_element can be described generically as follows (using which and what for first or last): which_min_what_max_element finds the (first or last, according to which) smallest element and the (first or last, according to what) largest element in the range [first, last). </p> <p> In other words there is a combination of 2 “parameters”, each of which can take two values:<br /> “first” and “last”:<br /> first_min_first_max_element<br /> first_min_last_max_element<br /> last_min_first_max_element<br /> last_min_last_max_element<br /> </p> <p> For more information look at the header file:<br /> <a href="http://www.boost.org/doc/libs/1_37_0/boost/algorithm/minmax_element.hpp">http://www.boost.org/doc/libs/1_37_0/boost/algorithm/minmax_element.hpp</a> (minmax_element.hpp)<br /> where those names are declared. </p> <p> Best regards,<br /> Alex Mission. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2500 Trac 1.4.3 Alex Mission aka BugHunter <alex_mission@…> Fri, 14 Nov 2008 10:37:38 GMT <link>https://svn.boost.org/trac10/ticket/2500#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2500#comment:1</guid> <description> <p> Oh, sorry, it should have been used <strong>bold</strong> to emphasize the erroneous places. Look, please, at the updated text.<br /> </p> <p> Here is an excerpt from aforementioned paragraph:<br /> “The family of algorithms comprising <strong>first_min_first_max_element</strong>, <strong>first_min_first_max_element</strong>, <strong>first_min_first_max_element</strong>, and <strong>first_min_first_max_element</strong> can be described generically as follows (using which and what for first or last): which_min_what_max_element finds the (first or last, according to which) smallest element and the (first or last, according to what) largest element in the range [first, last).” </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Steven Watanabe</dc:creator> <pubDate>Fri, 06 Feb 2009 03:45:13 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/2500#comment:2 https://svn.boost.org/trac10/ticket/2500#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/51045" title="Fix copy/paste error in minmax docs. Fixes #2500">[51045]</a>) Fix copy/paste error in minmax docs. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2500" title="#2500: Bugs: A minor bug in documentation to MinMax feature ... (closed: fixed)">#2500</a> </p> Ticket