[Boost-bugs] [Boost C++ Libraries] #13383: is_sorted() doc incorrectly says the predicate defaults to std::less_equal

Subject: [Boost-bugs] [Boost C++ Libraries] #13383: is_sorted() doc incorrectly says the predicate defaults to std::less_equal
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2018-01-09 11:32:09


#13383: is_sorted() doc incorrectly says the predicate defaults to std::less_equal
---------------------------------------+---------------------
 Reporter: Tony Lewis <tonyelewis@…> | Owner: (none)
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: None
  Version: Boost 1.63.0 | Severity: Problem
 Keywords: |
---------------------------------------+---------------------
 {{{#!cpp
 #include <boost/algorithm/cxx11/is_sorted.hpp>

 #include <iostream>
 #include <vector>

 int main () {
         std::vector<int> a = { 1, 2, 2, 3 };

         std::cerr << "default : " << std::boolalpha <<
 boost::algorithm::is_sorted( a ) << "\n";
         std::cerr << "less : " << std::boolalpha <<
 boost::algorithm::is_sorted( a, std::less <>{} ) << "\n";
         std::cerr << "less_equal: " << std::boolalpha <<
 boost::algorithm::is_sorted( a, std::less_equal<>{} ) << "\n";
 }
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac10/boost/ticket/13383>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2018-01-09 11:39:11 UTC