How to add new function to cout by using operator overloading

NoSuchKey