forked from HowardHinnant/date
Fill out link specification
This commit is contained in:
76
d0355r3.html
76
d0355r3.html
@@ -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&) = default;
|
||||
link& operator=(const link&) = 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& link::name() const
|
||||
</pre>
|
||||
<blockquote>
|
||||
<p>
|
||||
<i>Returns:</i> <code>name_</code>.
|
||||
</p>
|
||||
</blockquote>
|
||||
|
||||
<pre>
|
||||
const string& link::target() const
|
||||
</pre>
|
||||
<blockquote>
|
||||
<p>
|
||||
<i>Returns:</i> <code>target_</code>.
|
||||
</p>
|
||||
</blockquote>
|
||||
|
||||
<pre>
|
||||
bool operator==(const link& x, const link& y)
|
||||
</pre>
|
||||
<blockquote>
|
||||
<p>
|
||||
<i>Returns:</i> <code>x.name() == y.name()</code>.
|
||||
</p>
|
||||
</blockquote>
|
||||
|
||||
<pre>
|
||||
bool operator!=(const link& x, const link& y)
|
||||
</pre>
|
||||
<blockquote>
|
||||
<p>
|
||||
<i>Returns:</i> <code>!(x == y)</code>.
|
||||
</p>
|
||||
</blockquote>
|
||||
|
||||
<pre>
|
||||
bool operator< (const link& x, const link& y)
|
||||
</pre>
|
||||
<blockquote>
|
||||
<p>
|
||||
<i>Returns:</i> <code>x.name() < y.name()</code>.
|
||||
</p>
|
||||
</blockquote>
|
||||
|
||||
<pre>
|
||||
bool operator> (const link& x, const link& y)
|
||||
</pre>
|
||||
<blockquote>
|
||||
<p>
|
||||
<i>Returns:</i> <code>y < x</code>.
|
||||
</p>
|
||||
</blockquote>
|
||||
|
||||
<pre>
|
||||
bool operator<=(const link& x, const link& y)
|
||||
</pre>
|
||||
<blockquote>
|
||||
<p>
|
||||
<i>Returns:</i> <code>!(y < x)</code>.
|
||||
</p>
|
||||
</blockquote>
|
||||
|
||||
<pre>
|
||||
bool operator>=(const link& x, const link& y);
|
||||
</pre>
|
||||
<blockquote>
|
||||
<p>
|
||||
<i>Returns:</i> <code>!(x < y)</code>.
|
||||
</p>
|
||||
</blockquote>
|
||||
|
||||
</blockquote>
|
||||
|
||||
<a name="fs.filesystem.syn"></a><p class = note>
|
||||
|
Reference in New Issue
Block a user