return type of bool function

Your functions mypredicate and compare are merely thin wrappers over the binary operators == and <. Operators are like functions: they take a number of arguments of a given type, and return a result of a given type. For example, imagine a function bool operator==(int a, int b) with the following specification: if a equals … Read more