The snippt is cut from "The C++ Programming Language Fourth Editon" by Bjarne Stroustrup.