STL: writing "where" operator for a vector.
Posted
by Arman
on Stack Overflow
See other posts from Stack Overflow
or by Arman
Published on 2010-06-08T17:03:12Z
Indexed on
2010/06/08
18:02 UTC
Read the original article
Hit count: 390
Hello, I need to find the indexes in the vector based on several boolean predicates.
ex:
vector<float> v;
vector<int> idx;
idx=where( bool_func1(v), bool_func2(v), ... );
What is the way to declare **where**
function, in order to use the several user defined boolean functions over the vector?
thanks Arman.
© Stack Overflow or respective owner