About comparator function

we have just written compare (comparator function) as an argument .but it itself is a function in stl-03 video if we use this function in place of if condition of bubble sort like
if(a[j]>a[j+1]) to if(compare)
then how compare function gets its arguments.