Implementing the '<' operator
<p>What is the correct way to implement the '&lt;' operator for using the following simple class as a key in a <code>std::map</code> (functions are omitted)?</p>

<pre><code>class Person
{
public:
   bool valid = false;
   std::string name = "";
   std::string id = "";
}
</code></pre>