Following on from the earlier explanation, a slightly more complicated pair of template functions are created to perform and print out a bubble sort operation on any kind of vector. Along the way, we briefly mention the swap() function, which is used to transpose vector pairs.