Polynomial approximation of $C^M$ functions by means of boundary values and applications: A survey