29template <
typename T>
void swap(
T &a,
T &b) {
43template <
typename T>
T const &
min(
T const &a,
T const &b) {
return (a < b ? a : b); }
53template <
typename T>
T const &
max(
T const &a,
T const &b) {
return (a > b ? a : b); }
void printElement(const T &element)
Prints an element to the standard output.
T const & min(T const &a, T const &b)
Returns the smaller of two values. If the values are equal, it returns the second value.
void swap(T &a, T &b)
Swaps the values of two variables.
T const & max(T const &a, T const &b)
Returns the greater of two values. If the values are equal, it returns the second value.