Wednesday, May 26, 2010

Koenig Lookup

Given the following code: getline(std::cin,s); You don't have to prefix getline with std:: because of Koenig lookup.

Reference: The C++ Standard Library: A Tutorial and Reference by Nicolai M. Josuttis. Addison-Wesley, 1999., p. 493.

No comments:

Post a Comment