add some example code for c++-11