Return-Path: Delivered-To: apmail-stdcxx-issues-archive@locus.apache.org Received: (qmail 60542 invoked from network); 26 Sep 2008 15:20:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Sep 2008 15:20:35 -0000 Received: (qmail 60757 invoked by uid 500); 26 Sep 2008 15:20:33 -0000 Delivered-To: apmail-stdcxx-issues-archive@stdcxx.apache.org Received: (qmail 60713 invoked by uid 500); 26 Sep 2008 15:20:33 -0000 Mailing-List: contact issues-help@stdcxx.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stdcxx.apache.org Delivered-To: mailing list issues@stdcxx.apache.org Received: (qmail 60696 invoked by uid 99); 26 Sep 2008 15:20:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Sep 2008 08:20:32 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Sep 2008 15:19:40 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3BA7D234C1E0 for ; Fri, 26 Sep 2008 08:19:44 -0700 (PDT) Message-ID: <2085113843.1222442384229.JavaMail.jira@brutus> Date: Fri, 26 Sep 2008 08:19:44 -0700 (PDT) From: "Martin Sebor (JIRA)" To: issues@stdcxx.apache.org Subject: [jira] Assigned: (STDCXX-1017) Example for bind1st is wrong In-Reply-To: <1533229659.1222427504347.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/STDCXX-1017?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Martin Sebor reassigned STDCXX-1017: ------------------------------------ Assignee: Martin Sebor > Example for bind1st is wrong > ---------------------------- > > Key: STDCXX-1017 > URL: https://issues.apache.org/jira/browse/STDCXX-1017 > Project: C++ Standard Library > Issue Type: Bug > Components: Documentation > Affects Versions: 4.2.1 > Reporter: Elmar Zander > Assignee: Martin Sebor > Priority: Minor > Fix For: 4.2.2 > > > In the description of bind1st it says the following (http://stdcxx.apache.org/doc/stdlibref/bind1st.html): > "For example, you could use the count_if() algorithm to count all elements in a vector that are less than or equal to 7, using the following: > vector v; > int littleNums; > count_if(v.begin, v.end, bind1st(greater(),7), > littleNums) > This function adds one to littleNums each time the element is greater than 7." > The last sentence should of course read: This function adds one to littleNums each time the element is less than 7. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.