ARROW-17976: [C++] Use generic lambdas in arrow/compare.cc (#14363)
ARROW-17976: [C++] Use generic lambdas in arrow/compare.cc (#14363)

Authored-by: Antoine Pitrou <9359a4d812173b65a3a0094cd86363e79731a3c2@python.org>
Signed-off-by: Antoine Pitrou <9359a4d812173b65a3a0094cd86363e79731a3c2@python.org>
icexelloss/arrow,apache/arrow,kou/arrow,apache/arrow,kou/arrow,icexelloss/arrow,apache/arrow,icexelloss/arrow,icexelloss/arrow,icexelloss/arrow,kou/arrow,kou/arrow,icexelloss/arrow,icexelloss/arrow,kou/arrow,kou/arrow,apache/arrow,kou/arrow,apache/arrow,apache/arrow,kou/arrow,icexelloss/arrow,apache/arrow,kou/arrow,apache/arrow,icexelloss/arrow,icexelloss/arrow,icexelloss/arrow,apache/arrow,icexelloss/arrow,kou/arrow,apache/arrow,kou/arrow,icexelloss/arrow,apache/arrow,kou/arrow,apache/arrow,icexelloss/arrow,kou/arrow,apache/arrow,apache/arrow,kou/arrow