#include <stdio.h>
#include <string.h>

template <class T>
bool less(T a, T b)                     /* A: anything */
{
    return a < b;
}

template <class T>
bool less(T *a, T *b)                   /* B: pointers, compare targets */
{
    return *a < *b;
}

template <>
bool less(const char *a, const char *b) /* S: strings, by strcmp */
{
    return strcmp(a, b) < 0;
}


int main()
{
    const char *x = "apple", *y = "apricot";
    printf("%d\n", less(x, y));
    return 0;
}
