Comparators in STL

Why do we give the compare function as-- bool(&cmp)(int a ,int b) inside the bubble_sort function as parameter,when we have declared it by the name ‘compare’ above it?
Could not understand the concept :frowning:

@ambisingh10 its just a way of passing comparator to functions ( though rarely used)