Is there any simple std or boost function/algorithm that will check some value's range and return true (if the number is in the range) or false if its not.
This code looks really ugly, especially if you need to duplicate it many times in your program.Code:
int i = 5;
if (i > 2 && i < 10) ..
Thanks for help!