Fill out link specification

This commit is contained in:
Howard Hinnant
2017-06-16 21:58:58 -04:00
parent 34e83bcf84
commit 5bc5a7f0bb

View File

@@ -10151,6 +10151,10 @@ Add a new section 23.17.12.11 link [time.timezone.link]:
<pre>
class link
{
private:
std::string name_; // exposition only
std::string target_; // exposition only
public:
link(const link&amp;) = default;
link&amp; operator=(const link&amp;) = default;
@@ -10175,6 +10179,78 @@ an alternative name is <code>target()</code>. <code>link</code>s will be constr
for you when the time zone database is initialized.
</p>
<pre>
const string&amp; link::name() const
</pre>
<blockquote>
<p>
<i>Returns:</i> <code>name_</code>.
</p>
</blockquote>
<pre>
const string&amp; link::target() const
</pre>
<blockquote>
<p>
<i>Returns:</i> <code>target_</code>.
</p>
</blockquote>
<pre>
bool operator==(const link&amp; x, const link&amp; y)
</pre>
<blockquote>
<p>
<i>Returns:</i> <code>x.name() == y.name()</code>.
</p>
</blockquote>
<pre>
bool operator!=(const link&amp; x, const link&amp; y)
</pre>
<blockquote>
<p>
<i>Returns:</i> <code>!(x == y)</code>.
</p>
</blockquote>
<pre>
bool operator&lt; (const link&amp; x, const link&amp; y)
</pre>
<blockquote>
<p>
<i>Returns:</i> <code>x.name() &lt; y.name()</code>.
</p>
</blockquote>
<pre>
bool operator&gt; (const link&amp; x, const link&amp; y)
</pre>
<blockquote>
<p>
<i>Returns:</i> <code>y &lt; x</code>.
</p>
</blockquote>
<pre>
bool operator&lt;=(const link&amp; x, const link&amp; y)
</pre>
<blockquote>
<p>
<i>Returns:</i> <code>!(y &lt; x)</code>.
</p>
</blockquote>
<pre>
bool operator&gt;=(const link&amp; x, const link&amp; y);
</pre>
<blockquote>
<p>
<i>Returns:</i> <code>!(x &lt; y)</code>.
</p>
</blockquote>
</blockquote>
<a name="fs.filesystem.syn"></a><p class = note>