Boost: having an array of ints and some special int how to find nearest to yours in array?
<p>So I hava an unsorted array of 30 ints like 340, 6401 1280, and so on random numbers. I have int x which was cined by user. I need to find which value in array is nearest down (lower, smaller,less) to that x value. How to do such thing?</p>
