## 22.6 Setting Behavior Using Template Arguments (cont.)

- Identify a default policy
- Associated with a template parameter
- STL algorithms use the `less<T>`, in the `<functional>` header file

>     template<typename T>
>     class less
>     {
>        bool operator()(const T& x, const T& y) const;
>     }

>     template<typename T>
>     bool less<T>::operator()(const T& x, const T& y) const
>     {
>        return x < y;
>     }

prev |top |next