thrust::min_element With Binary Predicate

Hey Guys,

im trying to use the following function to find the smallest number in FLOAT3 Array , i have to supply somehow a binary predicate
to “teach” the function how to sort my array , i know that i have to declare on some kind of a struct that contains my predicate function ,
but i dont fully understand how exactly.

can you please show me an example of how to declare a binary predicate?

Thanks , igal