[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-stdcxx-issues
Subject:    [jira] Assigned: (STDCXX-1017) Example for bind1st is wrong
From:       "Martin Sebor (JIRA)" <jira () apache ! org>
Date:       2008-09-26 15:19:44
Message-ID: 2085113843.1222442384229.JavaMail.jira () brutus
[Download RAW message or body]


     [ 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<int> v;
> int littleNums;
> count_if(v.begin, v.end, bind1st(greater<int>(),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.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic