Files
tomlplusplus/classtoml_1_1value.html
2020-07-27 10:45:06 +00:00

699 lines
54 KiB
HTML

<!DOCTYPE html>
<html lang="en"><head>
<meta charset="utf-8"/>
<title>toml::value class | toml++ TOML
for
modern
C++</title>
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,600,600i%7CSource+Code+Pro:400,400i,600" rel="stylesheet"/>
<link href="m-dark+documentation.compiled.css" rel="stylesheet"/>
<link href="tomlplusplus.css" rel="stylesheet"/>
<link href="favicon.ico" rel="icon" type="image/vnd.microsoft.icon"/>
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
<meta content="#22272e" name="theme-color"/>
<meta content="gbtcNgKlNiPSMKkYMw4zWFVWGPH_oU93m9n_-nb4qK8" name="google-site-verification"/>
<meta content="Header-only
TOML
config
file
parser
and
serializer
for
modern
C++." name="description"/>
<script src="tomlplusplus.js"></script>
</head>
<body>
<header><nav id="navigation">
<div class="m-container">
<div class="m-row">
<a class="m-col-t-8 m-col-m-none m-left-m" href="index.html" id="m-navbar-brand"><img alt="" src="logo.png"/>toml++ <span class="m-thin">TOML
for
modern
C++</span></a>
<div class="m-col-t-4 m-hide-m m-text-right m-nopadr">
<a class="m-doc-search-icon" href="#search" onclick="return showSearch()" title="Search"><svg style="height: 0.9rem;" viewBox="0 0 16 16">
<path d="m6 0c-3.31 0-6 2.69-6 6 0 3.31 2.69 6 6 6 1.49 0 2.85-0.541 3.89-1.44-0.0164 0.338 0.147 0.759 0.5 1.15l3.22 3.79c0.552 0.614 1.45 0.665 2 0.115 0.55-0.55 0.499-1.45-0.115-2l-3.79-3.22c-0.392-0.353-0.812-0.515-1.15-0.5 0.895-1.05 1.44-2.41 1.44-3.89 0-3.31-2.69-6-6-6zm0 1.56a4.44 4.44 0 0 1 4.44 4.44 4.44 4.44 0 0 1-4.44 4.44 4.44 4.44 0 0 1-4.44-4.44 4.44 4.44 0 0 1 4.44-4.44z" id="m-doc-search-icon-path"></path>
</svg></a>
<a href="#navigation" id="m-navbar-show" title="Show navigation"></a>
<a href="#" id="m-navbar-hide" title="Hide navigation"></a>
</div>
<div class="m-col-t-12 m-show-m m-col-m-none m-right-m" id="m-navbar-collapse">
<div class="m-row">
<ol class="m-col-t-6 m-col-m-none">
<li><a href="namespaces.html">Namespaces</a></li>
</ol>
<ol class="m-col-t-6 m-col-m-none" start="2">
<li><a href="annotated.html">Classes</a></li>
<li><a class="github tpp-external" href="https://github.com/marzer/tomlplusplus/" target="_blank">Github</a></li>
<li class="m-show-m"><a class="m-doc-search-icon" href="#search" onclick="return showSearch()" title="Search"><svg style="height: 0.9rem;" viewBox="0 0 16 16">
<use href="#m-doc-search-icon-path"></use>
</svg></a></li>
</ol>
</div>
</div>
</div>
</div>
</nav></header>
<main><article>
<div class="m-container m-container-inflatable">
<div class="m-row">
<div class="m-col-l-10 m-push-l-1">
<h1>
<div class="m-doc-template">template&lt;typename ValueType&gt;</div>
<span class="m-breadcrumb"><a href="namespacetoml.html">toml</a>::<wbr/></span>value <span class="m-thin">class</span> <span class="m-label m-flat m-warning">final</span>
</h1>
<p>A TOML value.</p>
<table class="m-table m-fullwidth m-flat">
<thead>
<tr><th colspan="2">Template parameters</th></tr>
</thead>
<tbody>
<tr>
<td style="width: 1%">ValueType</td>
<td><p>The value's native TOML data type. Can be one of:</p><ul><li><a class="m-doc tpp-injected tpp-external" href="https://en.cppreference.com/w/cpp/string/basic_string" target="_blank">std::string</a></li><li><a class="m-doc" href="structtoml_1_1date.html">toml::<wbr/>date</a></li><li><a class="m-doc" href="structtoml_1_1time.html">toml::<wbr/>time</a></li><li><a class="m-doc" href="structtoml_1_1date__time.html">toml::<wbr/>date_time</a></li><li><a class="m-doc tpp-injected tpp-external" href="https://en.cppreference.com/w/cpp/types/integer" target="_blank">int64_t</a></li><li>double</li><li>bool</li></ul></td>
</tr>
</tbody>
</table>
<div class="m-block m-default">
<h3>Contents</h3>
<ul>
<li>
Reference
<ul>
<li><a href="#base-classes">Base classes</a></li>
<li><a href="#pub-types">Public types</a></li>
<li><a href="#typeless-methods">Constructors, destructors, conversion operators</a></li>
<li><a href="#pub-methods">Public functions</a></li>
<li><a href="#friends">Friends</a></li>
</ul>
</li>
</ul>
</div>
<section id="base-classes">
<h2><a href="#base-classes">Base classes</a></h2>
<dl class="m-doc">
<dt>
class <a class="m-doc" href="classtoml_1_1node.html">node</a>
</dt>
<dd>A TOML node.</dd>
</dl>
</section>
<section id="pub-types">
<h2><a href="#pub-types">Public types</a></h2>
<dl class="m-doc">
<dt>
using <a class="m-doc" href="#ad31666efce027c28c5383357badfa555">value_arg</a> = <a class="m-doc tpp-injected tpp-external" href="https://en.cppreference.com/w/cpp/types/conditional" target="_blank">std::conditional_t</a>&lt;std::is_same_v&lt;<a class="m-doc" href="classtoml_1_1value.html#ad87b8c7ec465c424b861aba2d4cd5526">value_<wbr/>type</a>, std::string&gt;, std::string_view, <a class="m-doc tpp-injected tpp-external" href="https://en.cppreference.com/w/cpp/types/conditional" target="_blank">std::conditional_t</a>&lt;impl::is_one_of&lt;<a class="m-doc" href="classtoml_1_1value.html#ad87b8c7ec465c424b861aba2d4cd5526">value_<wbr/>type</a>, double, <a class="m-doc tpp-injected tpp-external" href="https://en.cppreference.com/w/cpp/types/integer" target="_blank">int64_t</a>, bool&gt;, <a class="m-doc" href="classtoml_1_1value.html#ad87b8c7ec465c424b861aba2d4cd5526">value_<wbr/>type</a>, const <a class="m-doc" href="classtoml_1_1value.html#ad87b8c7ec465c424b861aba2d4cd5526">value_<wbr/>type</a>&amp;&gt;&gt;
</dt>
<dd>A type alias for 'value arguments'.</dd>
<dt id="ad87b8c7ec465c424b861aba2d4cd5526">
using <a class="m-doc-self" href="#ad87b8c7ec465c424b861aba2d4cd5526">value_type</a> = ValueType
</dt>
<dd>The value's underlying data type.</dd>
</dl>
</section>
<section id="typeless-methods">
<h2><a href="#typeless-methods">Constructors, destructors, conversion operators</a></h2>
<dl class="m-doc">
<dt>
<div class="m-doc-template">template&lt;typename... Args&gt;</div>
<span class="m-doc-wrap-bumper"><a class="m-doc" href="#a919970cca7c6545878a9ff5b79f7567d">value</a>(</span><span class="m-doc-wrap">Args &amp;&amp; ... args) <span class="m-label m-flat m-info">explicit</span> <span class="m-label m-flat m-success">noexcept(…)</span></span>
</dt>
<dd>Constructs a toml value.</dd>
<dt id="a62ace5d37c6cf09fdc589efa5e0a0905">
<span class="m-doc-wrap-bumper"><a class="m-doc-self" href="#a62ace5d37c6cf09fdc589efa5e0a0905">value</a>(</span><span class="m-doc-wrap">const <a class="m-doc" href="classtoml_1_1value.html">value</a>&amp; other) <span class="m-label m-flat m-success">noexcept</span></span>
</dt>
<dd>Copy constructor.</dd>
<dt id="adfb0250a9769fea9d585609db77bc64a">
<span class="m-doc-wrap-bumper"><a class="m-doc-self" href="#adfb0250a9769fea9d585609db77bc64a">value</a>(</span><span class="m-doc-wrap"><a class="m-doc" href="classtoml_1_1value.html">value</a>&amp;&amp; other) <span class="m-label m-flat m-success">noexcept</span></span>
</dt>
<dd>Move constructor.</dd>
<dt id="aeaa7f385c753bc7f11f0758d8ae325b6">
<span class="m-doc-wrap-bumper"><a class="m-doc-self" href="#aeaa7f385c753bc7f11f0758d8ae325b6">operator const value_type&amp;</a>(</span><span class="m-doc-wrap">) const &amp; <span class="m-label m-flat m-info">explicit</span> <span class="m-label m-flat m-success">noexcept</span></span>
</dt>
<dd>Returns a reference to the underlying value (const overload).</dd>
<dt id="adaf04b51fea2bdc3da39fbf63c240b3b">
<span class="m-doc-wrap-bumper"><a class="m-doc-self" href="#adaf04b51fea2bdc3da39fbf63c240b3b">operator value_type&amp;</a>(</span><span class="m-doc-wrap">) &amp; <span class="m-label m-flat m-info">explicit</span> <span class="m-label m-flat m-success">noexcept</span></span>
</dt>
<dd>Returns a reference to the underlying value.</dd>
<dt id="ad5d4a1c818d7004bc4c42219edf84dd9">
<span class="m-doc-wrap-bumper"><a class="m-doc-self" href="#ad5d4a1c818d7004bc4c42219edf84dd9">operator value_type&amp;&amp;</a>(</span><span class="m-doc-wrap">) &amp;&amp; <span class="m-label m-flat m-info">explicit</span> <span class="m-label m-flat m-success">noexcept</span></span>
</dt>
<dd>Returns a reference to the underlying value (rvalue overload).</dd>
</dl>
</section>
<section id="pub-methods">
<h2><a href="#pub-methods">Public functions</a></h2>
<dl class="m-doc">
<dt id="a6e3c1ab16a442efd5ed8dc120f1a0d49">
<span class="m-doc-wrap-bumper">auto <a class="m-doc-self" href="#a6e3c1ab16a442efd5ed8dc120f1a0d49">as_boolean</a>(</span><span class="m-doc-wrap">) const -&gt; const <a class="m-doc" href="classtoml_1_1value.html">value</a>&lt;bool&gt;* <span class="m-label m-flat m-warning">override</span> <span class="m-label m-flat m-success">noexcept</span></span>
</dt>
<dd>Returns a const pointer to the value if the data type is a boolean.</dd>
<dt id="a388205107db2b06f7f2954942cca8063">
<span class="m-doc-wrap-bumper">auto <a class="m-doc-self" href="#a388205107db2b06f7f2954942cca8063">as_boolean</a>(</span><span class="m-doc-wrap">) -&gt; <a class="m-doc" href="classtoml_1_1value.html">value</a>&lt;bool&gt;* <span class="m-label m-flat m-warning">override</span> <span class="m-label m-flat m-success">noexcept</span></span>
</dt>
<dd>Returns a pointer to the value if the data type is boolean.</dd>
<dt id="aa506d546ecd30669224e7e593a91078b">
<span class="m-doc-wrap-bumper">auto <a class="m-doc-self" href="#aa506d546ecd30669224e7e593a91078b">as_date</a>(</span><span class="m-doc-wrap">) const -&gt; const <a class="m-doc" href="classtoml_1_1value.html">value</a>&lt;<a class="m-doc" href="structtoml_1_1date.html">date</a>&gt;* <span class="m-label m-flat m-warning">override</span> <span class="m-label m-flat m-success">noexcept</span></span>
</dt>
<dd>Returns a const pointer to the value if the data type is a <a class="m-doc tpp-injected" href="structtoml_1_1date.html">date</a>.</dd>
<dt id="ad66d88e92f607a426a28ca3d933f641d">
<span class="m-doc-wrap-bumper">auto <a class="m-doc-self" href="#ad66d88e92f607a426a28ca3d933f641d">as_date</a>(</span><span class="m-doc-wrap">) -&gt; <a class="m-doc" href="classtoml_1_1value.html">value</a>&lt;<a class="m-doc" href="structtoml_1_1date.html">date</a>&gt;* <span class="m-label m-flat m-warning">override</span> <span class="m-label m-flat m-success">noexcept</span></span>
</dt>
<dd>Returns a pointer to the value if the data type is a <a class="m-doc tpp-injected" href="structtoml_1_1date.html">date</a>.</dd>
<dt id="acfdcdeb1b23ee386620c0314e972f2bf">
<span class="m-doc-wrap-bumper">auto <a class="m-doc-self" href="#acfdcdeb1b23ee386620c0314e972f2bf">as_date_time</a>(</span><span class="m-doc-wrap">) const -&gt; const <a class="m-doc" href="classtoml_1_1value.html">value</a>&lt;<a class="m-doc" href="structtoml_1_1date__time.html">date_<wbr/>time</a>&gt;* <span class="m-label m-flat m-warning">override</span> <span class="m-label m-flat m-success">noexcept</span></span>
</dt>
<dd>Returns a const pointer to the value if the data type is a date-<a class="m-doc tpp-injected" href="structtoml_1_1time.html">time</a>.</dd>
<dt id="a693ae6fa8490000bad7c4b947a71f352">
<span class="m-doc-wrap-bumper">auto <a class="m-doc-self" href="#a693ae6fa8490000bad7c4b947a71f352">as_date_time</a>(</span><span class="m-doc-wrap">) -&gt; <a class="m-doc" href="classtoml_1_1value.html">value</a>&lt;<a class="m-doc" href="structtoml_1_1date__time.html">date_<wbr/>time</a>&gt;* <span class="m-label m-flat m-warning">override</span> <span class="m-label m-flat m-success">noexcept</span></span>
</dt>
<dd>Returns a pointer to the value if the data type is date-<a class="m-doc tpp-injected" href="structtoml_1_1time.html">time</a>.</dd>
<dt id="a27c3f6925b7e4916ecb2285f40d78fd7">
<span class="m-doc-wrap-bumper">auto <a class="m-doc-self" href="#a27c3f6925b7e4916ecb2285f40d78fd7">as_floating_point</a>(</span><span class="m-doc-wrap">) const -&gt; const <a class="m-doc" href="classtoml_1_1value.html">value</a>&lt;double&gt;* <span class="m-label m-flat m-warning">override</span> <span class="m-label m-flat m-success">noexcept</span></span>
</dt>
<dd>Returns a const pointer to the value if the data type is a floating-point.</dd>
<dt id="a1a50e6ae4b77e2399e979e0e32e2c122">
<span class="m-doc-wrap-bumper">auto <a class="m-doc-self" href="#a1a50e6ae4b77e2399e979e0e32e2c122">as_floating_point</a>(</span><span class="m-doc-wrap">) -&gt; <a class="m-doc" href="classtoml_1_1value.html">value</a>&lt;double&gt;* <span class="m-label m-flat m-warning">override</span> <span class="m-label m-flat m-success">noexcept</span></span>
</dt>
<dd>Returns a pointer to the value if the data type is a floating-point.</dd>
<dt id="a179e6c1ec49c2de5edab8072e709bf79">
<span class="m-doc-wrap-bumper">auto <a class="m-doc-self" href="#a179e6c1ec49c2de5edab8072e709bf79">as_integer</a>(</span><span class="m-doc-wrap">) const -&gt; const <a class="m-doc" href="classtoml_1_1value.html">value</a>&lt;<a class="m-doc tpp-injected tpp-external" href="https://en.cppreference.com/w/cpp/types/integer" target="_blank">int64_t</a>&gt;* <span class="m-label m-flat m-warning">override</span> <span class="m-label m-flat m-success">noexcept</span></span>
</dt>
<dd>Returns a const pointer to the value if the data type is an integer.</dd>
<dt id="af4ff7751b5220c599d5dcee7fc44a595">
<span class="m-doc-wrap-bumper">auto <a class="m-doc-self" href="#af4ff7751b5220c599d5dcee7fc44a595">as_integer</a>(</span><span class="m-doc-wrap">) -&gt; <a class="m-doc" href="classtoml_1_1value.html">value</a>&lt;<a class="m-doc tpp-injected tpp-external" href="https://en.cppreference.com/w/cpp/types/integer" target="_blank">int64_t</a>&gt;* <span class="m-label m-flat m-warning">override</span> <span class="m-label m-flat m-success">noexcept</span></span>
</dt>
<dd>Returns a pointer to the value if the data type is an integer.</dd>
<dt id="a8b3ad1c0aa409fa70ac1bac452c72e6c">
<span class="m-doc-wrap-bumper">auto <a class="m-doc-self" href="#a8b3ad1c0aa409fa70ac1bac452c72e6c">as_string</a>(</span><span class="m-doc-wrap">) const -&gt; const <a class="m-doc" href="classtoml_1_1value.html">value</a>&lt;<a class="m-doc tpp-injected tpp-external" href="https://en.cppreference.com/w/cpp/string/basic_string" target="_blank">std::string</a>&gt;* <span class="m-label m-flat m-warning">override</span> <span class="m-label m-flat m-success">noexcept</span></span>
</dt>
<dd>Returns a const pointer to the value if the data type is a string.</dd>
<dt id="ad1a3c4dd6ffe9bbc53e1e0210a1dfcb9">
<span class="m-doc-wrap-bumper">auto <a class="m-doc-self" href="#ad1a3c4dd6ffe9bbc53e1e0210a1dfcb9">as_string</a>(</span><span class="m-doc-wrap">) -&gt; <a class="m-doc" href="classtoml_1_1value.html">value</a>&lt;<a class="m-doc tpp-injected tpp-external" href="https://en.cppreference.com/w/cpp/string/basic_string" target="_blank">std::string</a>&gt;* <span class="m-label m-flat m-warning">override</span> <span class="m-label m-flat m-success">noexcept</span></span>
</dt>
<dd>Returns a pointer to the value if the data type is a string.</dd>
<dt id="a8740458791de0d278be4636619847920">
<span class="m-doc-wrap-bumper">auto <a class="m-doc-self" href="#a8740458791de0d278be4636619847920">as_time</a>(</span><span class="m-doc-wrap">) const -&gt; const <a class="m-doc" href="classtoml_1_1value.html">value</a>&lt;<a class="m-doc" href="structtoml_1_1time.html">time</a>&gt;* <span class="m-label m-flat m-warning">override</span> <span class="m-label m-flat m-success">noexcept</span></span>
</dt>
<dd>Returns a const pointer to the value if the data type is a <a class="m-doc tpp-injected" href="structtoml_1_1time.html">time</a>.</dd>
<dt id="ad0f53f0e903d09aecdbd62b956113457">
<span class="m-doc-wrap-bumper">auto <a class="m-doc-self" href="#ad0f53f0e903d09aecdbd62b956113457">as_time</a>(</span><span class="m-doc-wrap">) -&gt; <a class="m-doc" href="classtoml_1_1value.html">value</a>&lt;<a class="m-doc" href="structtoml_1_1time.html">time</a>&gt;* <span class="m-label m-flat m-warning">override</span> <span class="m-label m-flat m-success">noexcept</span></span>
</dt>
<dd>Returns a pointer to the value if the data type is a <a class="m-doc tpp-injected" href="structtoml_1_1time.html">time</a>.</dd>
<dt id="a0b4ea781b83a3c164df24129d0e73341">
<span class="m-doc-wrap-bumper">auto <a class="m-doc-self" href="#a0b4ea781b83a3c164df24129d0e73341">get</a>(</span><span class="m-doc-wrap">) &amp;&amp; -&gt; <a class="m-doc" href="classtoml_1_1value.html#ad87b8c7ec465c424b861aba2d4cd5526">value_<wbr/>type</a>&amp;&amp; <span class="m-label m-flat m-success">noexcept</span></span>
</dt>
<dd>Returns a reference to the underlying value (rvalue overload).</dd>
<dt id="af607a8347e5918b35fcfb11e8f7d4398">
<span class="m-doc-wrap-bumper">auto <a class="m-doc-self" href="#af607a8347e5918b35fcfb11e8f7d4398">get</a>(</span><span class="m-doc-wrap">) &amp; -&gt; <a class="m-doc" href="classtoml_1_1value.html#ad87b8c7ec465c424b861aba2d4cd5526">value_<wbr/>type</a>&amp; <span class="m-label m-flat m-success">noexcept</span></span>
</dt>
<dd>Returns a reference to the underlying value.</dd>
<dt id="a3a0ec9ea9604d68ba9a9a4692868f8d8">
<span class="m-doc-wrap-bumper">auto <a class="m-doc-self" href="#a3a0ec9ea9604d68ba9a9a4692868f8d8">get</a>(</span><span class="m-doc-wrap">) const &amp; -&gt; const <a class="m-doc" href="classtoml_1_1value.html#ad87b8c7ec465c424b861aba2d4cd5526">value_<wbr/>type</a>&amp; <span class="m-label m-flat m-success">noexcept</span></span>
</dt>
<dd>Returns a reference to the underlying value (const overload).</dd>
<dt id="a64d6b4223bcf8c124802bb8f97e0e40e">
<span class="m-doc-wrap-bumper">auto <a class="m-doc-self" href="#a64d6b4223bcf8c124802bb8f97e0e40e">is_array</a>(</span><span class="m-doc-wrap">) const -&gt; bool <span class="m-label m-flat m-warning">override</span> <span class="m-label m-flat m-success">noexcept</span></span>
</dt>
<dd>Always returns <code>false</code> for value nodes.</dd>
<dt id="aa6218b2cf228431ab8933251cdd2827e">
<span class="m-doc-wrap-bumper">auto <a class="m-doc-self" href="#aa6218b2cf228431ab8933251cdd2827e">is_boolean</a>(</span><span class="m-doc-wrap">) const -&gt; bool <span class="m-label m-flat m-warning">override</span> <span class="m-label m-flat m-success">noexcept</span></span>
</dt>
<dd>Returns true if this node is a boolean value.</dd>
<dt id="a8efb92838ded8eee056a295b12f861b2">
<span class="m-doc-wrap-bumper">auto <a class="m-doc-self" href="#a8efb92838ded8eee056a295b12f861b2">is_date</a>(</span><span class="m-doc-wrap">) const -&gt; bool <span class="m-label m-flat m-warning">override</span> <span class="m-label m-flat m-success">noexcept</span></span>
</dt>
<dd>Returns true if this node is a local <a class="m-doc tpp-injected" href="structtoml_1_1date.html">date</a> value.</dd>
<dt id="a0de55ce6d6abe26d1a94d4e2021bd331">
<span class="m-doc-wrap-bumper">auto <a class="m-doc-self" href="#a0de55ce6d6abe26d1a94d4e2021bd331">is_date_time</a>(</span><span class="m-doc-wrap">) const -&gt; bool <span class="m-label m-flat m-warning">override</span> <span class="m-label m-flat m-success">noexcept</span></span>
</dt>
<dd>Returns true if this node is a date-<a class="m-doc tpp-injected" href="structtoml_1_1time.html">time</a> value.</dd>
<dt id="adf9e031d41969de6d8b55f59da72cfa3">
<span class="m-doc-wrap-bumper">auto <a class="m-doc-self" href="#adf9e031d41969de6d8b55f59da72cfa3">is_floating_point</a>(</span><span class="m-doc-wrap">) const -&gt; bool <span class="m-label m-flat m-warning">override</span> <span class="m-label m-flat m-success">noexcept</span></span>
</dt>
<dd>Returns true if this node is an floating-point value.</dd>
<dt id="a48ff507b26ed64224f1866502b8eaf28">
<span class="m-doc-wrap-bumper">auto <a class="m-doc-self" href="#a48ff507b26ed64224f1866502b8eaf28">is_integer</a>(</span><span class="m-doc-wrap">) const -&gt; bool <span class="m-label m-flat m-warning">override</span> <span class="m-label m-flat m-success">noexcept</span></span>
</dt>
<dd>Returns true if this node is an integer value.</dd>
<dt id="a4a81fff689d825a1717b1b439d130800">
<span class="m-doc-wrap-bumper">auto <a class="m-doc-self" href="#a4a81fff689d825a1717b1b439d130800">is_number</a>(</span><span class="m-doc-wrap">) const -&gt; bool <span class="m-label m-flat m-warning">override</span> <span class="m-label m-flat m-success">noexcept</span></span>
</dt>
<dd>Returns true if this node is an integer or floating-point value.</dd>
<dt id="aaec50db69c9e38159d6844394fe94dd5">
<span class="m-doc-wrap-bumper">auto <a class="m-doc-self" href="#aaec50db69c9e38159d6844394fe94dd5">is_string</a>(</span><span class="m-doc-wrap">) const -&gt; bool <span class="m-label m-flat m-warning">override</span> <span class="m-label m-flat m-success">noexcept</span></span>
</dt>
<dd>Returns true if this node is a string value.</dd>
<dt id="a043bd619a674718f1404f554eaef41e3">
<span class="m-doc-wrap-bumper">auto <a class="m-doc-self" href="#a043bd619a674718f1404f554eaef41e3">is_table</a>(</span><span class="m-doc-wrap">) const -&gt; bool <span class="m-label m-flat m-warning">override</span> <span class="m-label m-flat m-success">noexcept</span></span>
</dt>
<dd>Always returns <code>false</code> for value nodes.</dd>
<dt id="afa64172102844454bffe7ad2e757aace">
<span class="m-doc-wrap-bumper">auto <a class="m-doc-self" href="#afa64172102844454bffe7ad2e757aace">is_time</a>(</span><span class="m-doc-wrap">) const -&gt; bool <span class="m-label m-flat m-warning">override</span> <span class="m-label m-flat m-success">noexcept</span></span>
</dt>
<dd>Returns true if this node is a local <a class="m-doc tpp-injected" href="structtoml_1_1time.html">time</a> value.</dd>
<dt id="a9679039a2bda46d148a8b3ff842d8702">
<span class="m-doc-wrap-bumper">auto <a class="m-doc-self" href="#a9679039a2bda46d148a8b3ff842d8702">is_value</a>(</span><span class="m-doc-wrap">) const -&gt; bool <span class="m-label m-flat m-warning">override</span> <span class="m-label m-flat m-success">noexcept</span></span>
</dt>
<dd>Always returns <code>true</code> for value nodes.</dd>
<dt id="a64ad94a1086eedde1a94f12f020498d2">
<span class="m-doc-wrap-bumper">auto <a class="m-doc-self" href="#a64ad94a1086eedde1a94f12f020498d2">operator*</a>(</span><span class="m-doc-wrap">) &amp;&amp; -&gt; <a class="m-doc" href="classtoml_1_1value.html#ad87b8c7ec465c424b861aba2d4cd5526">value_<wbr/>type</a>&amp;&amp; <span class="m-label m-flat m-success">noexcept</span></span>
</dt>
<dd>Returns a reference to the underlying value (rvalue overload).</dd>
<dt id="a054c1fb796a4e560d4afb27019bb1aef">
<span class="m-doc-wrap-bumper">auto <a class="m-doc-self" href="#a054c1fb796a4e560d4afb27019bb1aef">operator*</a>(</span><span class="m-doc-wrap">) &amp; -&gt; <a class="m-doc" href="classtoml_1_1value.html#ad87b8c7ec465c424b861aba2d4cd5526">value_<wbr/>type</a>&amp; <span class="m-label m-flat m-success">noexcept</span></span>
</dt>
<dd>Returns a reference to the underlying value.</dd>
<dt id="a15e56286d17f11a4d567eaddb36368f8">
<span class="m-doc-wrap-bumper">auto <a class="m-doc-self" href="#a15e56286d17f11a4d567eaddb36368f8">operator*</a>(</span><span class="m-doc-wrap">) const &amp; -&gt; const <a class="m-doc" href="classtoml_1_1value.html#ad87b8c7ec465c424b861aba2d4cd5526">value_<wbr/>type</a>&amp; <span class="m-label m-flat m-success">noexcept</span></span>
</dt>
<dd>Returns a reference to the underlying value (const overload).</dd>
<dt id="a339731a8213b5e0993b5547067fde1f7">
<span class="m-doc-wrap-bumper">auto <a class="m-doc-self" href="#a339731a8213b5e0993b5547067fde1f7">operator=</a>(</span><span class="m-doc-wrap">const <a class="m-doc" href="classtoml_1_1value.html">value</a>&amp; rhs) -&gt; <a class="m-doc" href="classtoml_1_1value.html">value</a>&amp; <span class="m-label m-flat m-success">noexcept</span></span>
</dt>
<dd>Copy-assignment operator.</dd>
<dt id="a958da7aae3ff90094e348ebceaa4aa5d">
<span class="m-doc-wrap-bumper">auto <a class="m-doc-self" href="#a958da7aae3ff90094e348ebceaa4aa5d">operator=</a>(</span><span class="m-doc-wrap"><a class="m-doc" href="classtoml_1_1value.html">value</a>&amp;&amp; rhs) -&gt; <a class="m-doc" href="classtoml_1_1value.html">value</a>&amp; <span class="m-label m-flat m-success">noexcept</span></span>
</dt>
<dd>Move-assignment operator.</dd>
<dt id="a08950deffd1a5568154d58d27517c973">
<span class="m-doc-wrap-bumper">auto <a class="m-doc-self" href="#a08950deffd1a5568154d58d27517c973">operator=</a>(</span><span class="m-doc-wrap"><a class="m-doc" href="classtoml_1_1value.html#ad31666efce027c28c5383357badfa555">value_<wbr/>arg</a> rhs) -&gt; <a class="m-doc" href="classtoml_1_1value.html">value</a>&amp; <span class="m-label m-flat m-success">noexcept</span></span>
</dt>
<dd>Value-assignment operator.</dd>
<dt>
<span class="m-doc-wrap-bumper">auto <a class="m-doc" href="#a6fae24eb3eca5e298e4211d2f3503fa4">type</a>(</span><span class="m-doc-wrap">) const -&gt; <a class="m-doc" href="namespacetoml.html#abac3e84bbf1f2c90717fca107055f48d">node_<wbr/>type</a> <span class="m-label m-flat m-warning">override</span> <span class="m-label m-flat m-success">noexcept</span></span>
</dt>
<dd>Returns the value's node type identifier.</dd>
</dl>
</section>
<section id="friends">
<h2><a href="#friends">Friends</a></h2>
<dl class="m-doc">
<dt>
<div class="m-doc-template">template&lt;typename T&gt;</div>
<span class="m-doc-wrap-bumper">auto <a class="m-doc" href="#a872e565adfbcd201f2ab1e3103699758">operator!=</a>(</span><span class="m-doc-wrap">const <a class="m-doc" href="classtoml_1_1value.html">value</a>&amp; lhs,
const <a class="m-doc" href="classtoml_1_1value.html">value</a>&lt;T&gt;&amp; rhs) -&gt; bool <span class="m-label m-flat m-success">noexcept</span></span>
</dt>
<dd>Inequality operator.</dd>
<dt>
<div class="m-doc-template">template&lt;typename T&gt;</div>
<span class="m-doc-wrap-bumper">auto <a class="m-doc" href="#a7fdc4f87f9ec3efb896cc3e09694328b">operator&lt;</a>(</span><span class="m-doc-wrap">const <a class="m-doc" href="classtoml_1_1value.html">value</a>&amp; lhs,
const <a class="m-doc" href="classtoml_1_1value.html">value</a>&lt;T&gt;&amp; rhs) -&gt; bool <span class="m-label m-flat m-success">noexcept</span></span>
</dt>
<dd>Less-than operator.</dd>
<dt id="a1771aa33bd2d425b542d0b9d0e90866d">
<span class="m-doc-wrap-bumper">auto <a class="m-doc-self" href="#a1771aa33bd2d425b542d0b9d0e90866d">operator&lt;</a>(</span><span class="m-doc-wrap">const <a class="m-doc" href="classtoml_1_1value.html">value</a>&amp; lhs,
<a class="m-doc" href="classtoml_1_1value.html#ad31666efce027c28c5383357badfa555">value_<wbr/>arg</a> rhs) -&gt; bool <span class="m-label m-flat m-success">noexcept</span></span>
</dt>
<dd>Value less-than operator.</dd>
<dt id="a6bbe09942bd6046fa94addb911940491">
<span class="m-doc-wrap-bumper">auto <a class="m-doc-self" href="#a6bbe09942bd6046fa94addb911940491">operator&lt;</a>(</span><span class="m-doc-wrap"><a class="m-doc" href="classtoml_1_1value.html#ad31666efce027c28c5383357badfa555">value_<wbr/>arg</a> lhs,
const <a class="m-doc" href="classtoml_1_1value.html">value</a>&amp; rhs) -&gt; bool <span class="m-label m-flat m-success">noexcept</span></span>
</dt>
<dd>Value less-than operator.</dd>
<dt id="a3559f8309f337e65ee1baba5f2130f48">
<div class="m-doc-template">template&lt;typename Char, typename T&gt;</div>
<span class="m-doc-wrap-bumper">auto <a class="m-doc-self" href="#a3559f8309f337e65ee1baba5f2130f48">operator&lt;&lt;</a>(</span><span class="m-doc-wrap"><a class="m-doc tpp-injected tpp-external" href="https://en.cppreference.com/w/cpp/io/basic_ostream" target="_blank">std::basic_ostream</a>&lt;Char&gt;&amp; lhs,
const <a class="m-doc" href="classtoml_1_1value.html">value</a>&lt;T&gt;&amp; rhs) -&gt; <a class="m-doc tpp-injected tpp-external" href="https://en.cppreference.com/w/cpp/io/basic_ostream" target="_blank">std::basic_ostream</a>&lt;Char&gt;&amp;</span>
</dt>
<dd>Prints the value out to a stream as formatted TOML.</dd>
<dt>
<div class="m-doc-template">template&lt;typename T&gt;</div>
<span class="m-doc-wrap-bumper">auto <a class="m-doc" href="#ac6af15f59d537d95d1afe887b12b697e">operator&lt;=</a>(</span><span class="m-doc-wrap">const <a class="m-doc" href="classtoml_1_1value.html">value</a>&amp; lhs,
const <a class="m-doc" href="classtoml_1_1value.html">value</a>&lt;T&gt;&amp; rhs) -&gt; bool <span class="m-label m-flat m-success">noexcept</span></span>
</dt>
<dd>Less-than-or-equal-to operator.</dd>
<dt id="a7d02565c608c663afc8f3d2102639740">
<span class="m-doc-wrap-bumper">auto <a class="m-doc-self" href="#a7d02565c608c663afc8f3d2102639740">operator&lt;=</a>(</span><span class="m-doc-wrap">const <a class="m-doc" href="classtoml_1_1value.html">value</a>&amp; lhs,
<a class="m-doc" href="classtoml_1_1value.html#ad31666efce027c28c5383357badfa555">value_<wbr/>arg</a> rhs) -&gt; bool <span class="m-label m-flat m-success">noexcept</span></span>
</dt>
<dd>Value less-than-or-equal-to operator.</dd>
<dt id="a2f37f69d3e477c0c2e2ba16f6919815e">
<span class="m-doc-wrap-bumper">auto <a class="m-doc-self" href="#a2f37f69d3e477c0c2e2ba16f6919815e">operator&lt;=</a>(</span><span class="m-doc-wrap"><a class="m-doc" href="classtoml_1_1value.html#ad31666efce027c28c5383357badfa555">value_<wbr/>arg</a> lhs,
const <a class="m-doc" href="classtoml_1_1value.html">value</a>&amp; rhs) -&gt; bool <span class="m-label m-flat m-success">noexcept</span></span>
</dt>
<dd>Value less-than-or-equal-to operator.</dd>
<dt>
<div class="m-doc-template">template&lt;typename T&gt;</div>
<span class="m-doc-wrap-bumper">auto <a class="m-doc" href="#a2fa446100047d052d0cca2c1f3f60085">operator==</a>(</span><span class="m-doc-wrap">const <a class="m-doc" href="classtoml_1_1value.html">value</a>&amp; lhs,
const <a class="m-doc" href="classtoml_1_1value.html">value</a>&lt;T&gt;&amp; rhs) -&gt; bool <span class="m-label m-flat m-success">noexcept</span></span>
</dt>
<dd>Equality operator.</dd>
<dt id="a0b90e4f85ecaf2c81e4ba8b42aa5ce34">
<span class="m-doc-wrap-bumper">auto <a class="m-doc-self" href="#a0b90e4f85ecaf2c81e4ba8b42aa5ce34">operator==</a>(</span><span class="m-doc-wrap">const <a class="m-doc" href="classtoml_1_1value.html">value</a>&amp; lhs,
<a class="m-doc" href="classtoml_1_1value.html#ad31666efce027c28c5383357badfa555">value_<wbr/>arg</a> rhs) -&gt; bool <span class="m-label m-flat m-success">noexcept</span></span>
</dt>
<dd>Value equality operator.</dd>
<dt>
<div class="m-doc-template">template&lt;typename T&gt;</div>
<span class="m-doc-wrap-bumper">auto <a class="m-doc" href="#ab95d07a7f48e44baefbacbf5f6072837">operator&gt;</a>(</span><span class="m-doc-wrap">const <a class="m-doc" href="classtoml_1_1value.html">value</a>&amp; lhs,
const <a class="m-doc" href="classtoml_1_1value.html">value</a>&lt;T&gt;&amp; rhs) -&gt; bool <span class="m-label m-flat m-success">noexcept</span></span>
</dt>
<dd>Greater-than operator.</dd>
<dt id="ace8c00e345c69ee93e5d2bd2df694340">
<span class="m-doc-wrap-bumper">auto <a class="m-doc-self" href="#ace8c00e345c69ee93e5d2bd2df694340">operator&gt;</a>(</span><span class="m-doc-wrap">const <a class="m-doc" href="classtoml_1_1value.html">value</a>&amp; lhs,
<a class="m-doc" href="classtoml_1_1value.html#ad31666efce027c28c5383357badfa555">value_<wbr/>arg</a> rhs) -&gt; bool <span class="m-label m-flat m-success">noexcept</span></span>
</dt>
<dd>Value greater-than operator.</dd>
<dt id="af200f2be4273ed0923743f4b918f86e6">
<span class="m-doc-wrap-bumper">auto <a class="m-doc-self" href="#af200f2be4273ed0923743f4b918f86e6">operator&gt;</a>(</span><span class="m-doc-wrap"><a class="m-doc" href="classtoml_1_1value.html#ad31666efce027c28c5383357badfa555">value_<wbr/>arg</a> lhs,
const <a class="m-doc" href="classtoml_1_1value.html">value</a>&amp; rhs) -&gt; bool <span class="m-label m-flat m-success">noexcept</span></span>
</dt>
<dd>Value greater-than operator.</dd>
<dt>
<div class="m-doc-template">template&lt;typename T&gt;</div>
<span class="m-doc-wrap-bumper">auto <a class="m-doc" href="#a0ebdea821d98546de4b686f450506637">operator&gt;=</a>(</span><span class="m-doc-wrap">const <a class="m-doc" href="classtoml_1_1value.html">value</a>&amp; lhs,
const <a class="m-doc" href="classtoml_1_1value.html">value</a>&lt;T&gt;&amp; rhs) -&gt; bool <span class="m-label m-flat m-success">noexcept</span></span>
</dt>
<dd>Greater-than-or-equal-to operator.</dd>
<dt id="a80417b5055072f20d3a6985d1b78af21">
<span class="m-doc-wrap-bumper">auto <a class="m-doc-self" href="#a80417b5055072f20d3a6985d1b78af21">operator&gt;=</a>(</span><span class="m-doc-wrap">const <a class="m-doc" href="classtoml_1_1value.html">value</a>&amp; lhs,
<a class="m-doc" href="classtoml_1_1value.html#ad31666efce027c28c5383357badfa555">value_<wbr/>arg</a> rhs) -&gt; bool <span class="m-label m-flat m-success">noexcept</span></span>
</dt>
<dd>Value greater-than-or-equal-to operator.</dd>
<dt id="a727e2acd21edf04a144918d174706ba6">
<span class="m-doc-wrap-bumper">auto <a class="m-doc-self" href="#a727e2acd21edf04a144918d174706ba6">operator&gt;=</a>(</span><span class="m-doc-wrap"><a class="m-doc" href="classtoml_1_1value.html#ad31666efce027c28c5383357badfa555">value_<wbr/>arg</a> lhs,
const <a class="m-doc" href="classtoml_1_1value.html">value</a>&amp; rhs) -&gt; bool <span class="m-label m-flat m-success">noexcept</span></span>
</dt>
<dd>Value greater-than-or-equal-to operator.</dd>
</dl>
</section>
<section>
<h2>Typedef documentation</h2>
<section class="m-doc-details" id="ad31666efce027c28c5383357badfa555"><div>
<h3>
<div class="m-doc-template">
template&lt;typename ValueType&gt;
</div>
using toml::<wbr/>value&lt;ValueType&gt;::<wbr/><a class="m-doc-self" href="#ad31666efce027c28c5383357badfa555">value_arg</a> = <a class="m-doc tpp-injected tpp-external" href="https://en.cppreference.com/w/cpp/types/conditional" target="_blank">std::conditional_t</a>&lt;std::is_same_v&lt;<a class="m-doc" href="classtoml_1_1value.html#ad87b8c7ec465c424b861aba2d4cd5526">value_<wbr/>type</a>, std::string&gt;, std::string_view, <a class="m-doc tpp-injected tpp-external" href="https://en.cppreference.com/w/cpp/types/conditional" target="_blank">std::conditional_t</a>&lt;impl::is_one_of&lt;<a class="m-doc" href="classtoml_1_1value.html#ad87b8c7ec465c424b861aba2d4cd5526">value_<wbr/>type</a>, double, <a class="m-doc tpp-injected tpp-external" href="https://en.cppreference.com/w/cpp/types/integer" target="_blank">int64_t</a>, bool&gt;, <a class="m-doc" href="classtoml_1_1value.html#ad87b8c7ec465c424b861aba2d4cd5526">value_<wbr/>type</a>, const <a class="m-doc" href="classtoml_1_1value.html#ad87b8c7ec465c424b861aba2d4cd5526">value_<wbr/>type</a>&amp;&gt;&gt;
</h3>
<p>A type alias for 'value arguments'.</p>
<p>This differs according to the value's type argument:</p><ul><li>ints, floats, booleans: <code>value_type</code></li><li>strings: <code>string_view</code></li><li>everything else: <code>const value_type&amp;</code></li></ul>
</div></section>
</section>
<section>
<h2>Function documentation</h2>
<section class="m-doc-details" id="a919970cca7c6545878a9ff5b79f7567d"><div>
<h3>
<div class="m-doc-template">
template&lt;typename ValueType&gt;
template&lt;typename... Args&gt;
</div>
<span class="m-doc-wrap-bumper"> toml::<wbr/>value&lt;ValueType&gt;::<wbr/></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a class="m-doc-self" href="#a919970cca7c6545878a9ff5b79f7567d">value</a>(</span><span class="m-doc-wrap">Args &amp;&amp; ... args) <span class="m-label m-info">explicit</span> <span class="m-label m-success">noexcept(…)</span></span></span>
</h3>
<p>Constructs a toml value.</p>
<table class="m-table m-fullwidth m-flat">
<thead>
<tr><th colspan="2">Template parameters</th></tr>
</thead>
<tbody>
<tr>
<td style="width: 1%">Args</td>
<td>Constructor argument types.</td>
</tr>
</tbody>
<thead>
<tr><th colspan="2">Parameters</th></tr>
</thead>
<tbody>
<tr>
<td>args</td>
<td>Arguments to forward to the internal value's constructor.</td>
</tr>
</tbody>
</table>
</div></section>
<section class="m-doc-details" id="a6fae24eb3eca5e298e4211d2f3503fa4"><div>
<h3>
<div class="m-doc-template">
template&lt;typename ValueType&gt;
</div>
<span class="m-doc-wrap-bumper"><a class="m-doc" href="namespacetoml.html#abac3e84bbf1f2c90717fca107055f48d">node_<wbr/>type</a> toml::<wbr/>value&lt;ValueType&gt;::<wbr/></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a class="m-doc-self" href="#a6fae24eb3eca5e298e4211d2f3503fa4">type</a>(</span><span class="m-doc-wrap">) const <span class="m-label m-warning">override</span> <span class="m-label m-success">noexcept</span></span></span>
</h3>
<p>Returns the value's node type identifier.</p>
<table class="m-table m-fullwidth m-flat">
<tfoot>
<tr>
<th style="width: 1%">Returns</th>
<td><p>One of:</p><ul><li><a class="m-doc" href="namespacetoml.html#abac3e84bbf1f2c90717fca107055f48dab45cffe084dd3d20d928bee85e7b0f21">node_type::<wbr/>string</a></li><li><a class="m-doc" href="namespacetoml.html#abac3e84bbf1f2c90717fca107055f48da157db7df530023575515d366c9b672e8">node_type::<wbr/>integer</a></li><li><a class="m-doc" href="namespacetoml.html#abac3e84bbf1f2c90717fca107055f48da387f7c620a256fdffcec74c1e7181a2a">node_type::<wbr/>floating_point</a></li><li><a class="m-doc" href="namespacetoml.html#abac3e84bbf1f2c90717fca107055f48da84e2c64f38f78ba3ea5c905ab5a2da27">node_type::<wbr/>boolean</a></li><li><a class="m-doc" href="namespacetoml.html#abac3e84bbf1f2c90717fca107055f48da5fc732311905cb27e82d67f4f6511f7f">node_type::<wbr/>date</a></li><li><a class="m-doc" href="namespacetoml.html#abac3e84bbf1f2c90717fca107055f48da07cc694b9b3fc636710fa08b6922c42b">node_type::<wbr/>time</a></li><li><a class="m-doc" href="namespacetoml.html#abac3e84bbf1f2c90717fca107055f48dad611c46f8e65d9e049afe165de18c264">node_type::<wbr/>date_time</a></li></ul></td>
</tr>
</tfoot>
</table>
</div></section>
<section class="m-doc-details" id="a872e565adfbcd201f2ab1e3103699758"><div>
<h3>
<div class="m-doc-template">
template&lt;typename ValueType&gt;
template&lt;typename T&gt;
</div>
<span class="m-doc-wrap-bumper">bool </span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a class="m-doc-self" href="#a872e565adfbcd201f2ab1e3103699758">operator!=</a>(</span><span class="m-doc-wrap">const <a class="m-doc" href="classtoml_1_1value.html">value</a>&amp; lhs,
const <a class="m-doc" href="classtoml_1_1value.html">value</a>&lt;T&gt;&amp; rhs) <span class="m-label m-success">noexcept</span></span></span>
</h3>
<p>Inequality operator.</p>
<table class="m-table m-fullwidth m-flat">
<thead>
<tr><th colspan="2">Parameters</th></tr>
</thead>
<tbody>
<tr>
<td style="width: 1%">lhs</td>
<td>The LHS value.</td>
</tr>
<tr>
<td>rhs</td>
<td>The RHS value.</td>
</tr>
</tbody>
<tfoot>
<tr>
<th>Returns</th>
<td>True if the values were not of the same type, or did not contain the same value.</td>
</tr>
</tfoot>
</table>
</div></section>
<section class="m-doc-details" id="a7fdc4f87f9ec3efb896cc3e09694328b"><div>
<h3>
<div class="m-doc-template">
template&lt;typename ValueType&gt;
template&lt;typename T&gt;
</div>
<span class="m-doc-wrap-bumper">bool </span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a class="m-doc-self" href="#a7fdc4f87f9ec3efb896cc3e09694328b">operator&lt;</a>(</span><span class="m-doc-wrap">const <a class="m-doc" href="classtoml_1_1value.html">value</a>&amp; lhs,
const <a class="m-doc" href="classtoml_1_1value.html">value</a>&lt;T&gt;&amp; rhs) <span class="m-label m-success">noexcept</span></span></span>
</h3>
<p>Less-than operator.</p>
<table class="m-table m-fullwidth m-flat">
<thead>
<tr><th colspan="2">Parameters</th></tr>
</thead>
<tbody>
<tr>
<td style="width: 1%">lhs</td>
<td>The LHS <a class="m-doc" href="classtoml_1_1value.html">toml::<wbr/>value</a>.</td>
</tr>
<tr>
<td>rhs</td>
<td>The RHS <a class="m-doc" href="classtoml_1_1value.html">toml::<wbr/>value</a>.</td>
</tr>
</tbody>
<tfoot>
<tr>
<th>Returns</th>
<td><strong><em>Same value types:</em></strong> <code>lhs.get() &lt; rhs.get()</code><br/><strong><em>Different value types:</em></strong> <code>lhs.type() &lt; rhs.type()</code></td>
</tr>
</tfoot>
</table>
</div></section>
<section class="m-doc-details" id="ac6af15f59d537d95d1afe887b12b697e"><div>
<h3>
<div class="m-doc-template">
template&lt;typename ValueType&gt;
template&lt;typename T&gt;
</div>
<span class="m-doc-wrap-bumper">bool </span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a class="m-doc-self" href="#ac6af15f59d537d95d1afe887b12b697e">operator&lt;=</a>(</span><span class="m-doc-wrap">const <a class="m-doc" href="classtoml_1_1value.html">value</a>&amp; lhs,
const <a class="m-doc" href="classtoml_1_1value.html">value</a>&lt;T&gt;&amp; rhs) <span class="m-label m-success">noexcept</span></span></span>
</h3>
<p>Less-than-or-equal-to operator.</p>
<table class="m-table m-fullwidth m-flat">
<thead>
<tr><th colspan="2">Parameters</th></tr>
</thead>
<tbody>
<tr>
<td style="width: 1%">lhs</td>
<td>The LHS <a class="m-doc" href="classtoml_1_1value.html">toml::<wbr/>value</a>.</td>
</tr>
<tr>
<td>rhs</td>
<td>The RHS <a class="m-doc" href="classtoml_1_1value.html">toml::<wbr/>value</a>.</td>
</tr>
</tbody>
<tfoot>
<tr>
<th>Returns</th>
<td><strong><em>Same value types:</em></strong> <code>lhs.get() &lt;= rhs.get()</code><br/><strong><em>Different value types:</em></strong> <code>lhs.type() &lt;= rhs.type()</code></td>
</tr>
</tfoot>
</table>
</div></section>
<section class="m-doc-details" id="a2fa446100047d052d0cca2c1f3f60085"><div>
<h3>
<div class="m-doc-template">
template&lt;typename ValueType&gt;
template&lt;typename T&gt;
</div>
<span class="m-doc-wrap-bumper">bool </span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a class="m-doc-self" href="#a2fa446100047d052d0cca2c1f3f60085">operator==</a>(</span><span class="m-doc-wrap">const <a class="m-doc" href="classtoml_1_1value.html">value</a>&amp; lhs,
const <a class="m-doc" href="classtoml_1_1value.html">value</a>&lt;T&gt;&amp; rhs) <span class="m-label m-success">noexcept</span></span></span>
</h3>
<p>Equality operator.</p>
<table class="m-table m-fullwidth m-flat">
<thead>
<tr><th colspan="2">Parameters</th></tr>
</thead>
<tbody>
<tr>
<td style="width: 1%">lhs</td>
<td>The LHS value.</td>
</tr>
<tr>
<td>rhs</td>
<td>The RHS value.</td>
</tr>
</tbody>
<tfoot>
<tr>
<th>Returns</th>
<td>True if the values were of the same type and contained the same value.</td>
</tr>
</tfoot>
</table>
</div></section>
<section class="m-doc-details" id="ab95d07a7f48e44baefbacbf5f6072837"><div>
<h3>
<div class="m-doc-template">
template&lt;typename ValueType&gt;
template&lt;typename T&gt;
</div>
<span class="m-doc-wrap-bumper">bool </span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a class="m-doc-self" href="#ab95d07a7f48e44baefbacbf5f6072837">operator&gt;</a>(</span><span class="m-doc-wrap">const <a class="m-doc" href="classtoml_1_1value.html">value</a>&amp; lhs,
const <a class="m-doc" href="classtoml_1_1value.html">value</a>&lt;T&gt;&amp; rhs) <span class="m-label m-success">noexcept</span></span></span>
</h3>
<p>Greater-than operator.</p>
<table class="m-table m-fullwidth m-flat">
<thead>
<tr><th colspan="2">Parameters</th></tr>
</thead>
<tbody>
<tr>
<td style="width: 1%">lhs</td>
<td>The LHS <a class="m-doc" href="classtoml_1_1value.html">toml::<wbr/>value</a>.</td>
</tr>
<tr>
<td>rhs</td>
<td>The RHS <a class="m-doc" href="classtoml_1_1value.html">toml::<wbr/>value</a>.</td>
</tr>
</tbody>
<tfoot>
<tr>
<th>Returns</th>
<td><strong><em>Same value types:</em></strong> <code>lhs.get() &gt; rhs.get()</code><br/><strong><em>Different value types:</em></strong> <code>lhs.type() &gt; rhs.type()</code></td>
</tr>
</tfoot>
</table>
</div></section>
<section class="m-doc-details" id="a0ebdea821d98546de4b686f450506637"><div>
<h3>
<div class="m-doc-template">
template&lt;typename ValueType&gt;
template&lt;typename T&gt;
</div>
<span class="m-doc-wrap-bumper">bool </span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a class="m-doc-self" href="#a0ebdea821d98546de4b686f450506637">operator&gt;=</a>(</span><span class="m-doc-wrap">const <a class="m-doc" href="classtoml_1_1value.html">value</a>&amp; lhs,
const <a class="m-doc" href="classtoml_1_1value.html">value</a>&lt;T&gt;&amp; rhs) <span class="m-label m-success">noexcept</span></span></span>
</h3>
<p>Greater-than-or-equal-to operator.</p>
<table class="m-table m-fullwidth m-flat">
<thead>
<tr><th colspan="2">Parameters</th></tr>
</thead>
<tbody>
<tr>
<td style="width: 1%">lhs</td>
<td>The LHS <a class="m-doc" href="classtoml_1_1value.html">toml::<wbr/>value</a>.</td>
</tr>
<tr>
<td>rhs</td>
<td>The RHS <a class="m-doc" href="classtoml_1_1value.html">toml::<wbr/>value</a>.</td>
</tr>
</tbody>
<tfoot>
<tr>
<th>Returns</th>
<td><strong><em>Same value types:</em></strong> <code>lhs.get() &gt;= rhs.get()</code><br/><strong><em>Different value types:</em></strong> <code>lhs.type() &gt;= rhs.type()</code></td>
</tr>
</tfoot>
</table>
</div></section>
</section>
</div>
</div>
</div>
</article></main>
<div class="m-doc-search" id="search">
<a href="#!" onclick="return hideSearch()"></a>
<div class="m-container">
<div class="m-row">
<div class="m-col-m-8 m-push-m-2">
<div class="m-doc-search-header m-text m-small">
<div><span class="m-label m-default">Tab</span> / <span class="m-label m-default">T</span> to search, <span class="m-label m-default">Esc</span> to close</div>
<div id="search-symbolcount"></div>
</div>
<div class="m-doc-search-content">
<form>
<input autocomplete="off" autofocus="autofocus" disabled="disabled" id="search-input" name="q" placeholder="Loading …" spellcheck="false" type="search"/>
</form>
<noscript class="m-text m-danger m-text-center">Unlike everything else in the docs, the search functionality <em>requires</em> JavaScript.</noscript>
<div class="m-text m-dim m-text-center" id="search-help">
<p class="m-noindent">Search for symbols, directories, files, pages or
modules. You can omit any prefix from the symbol or file path; adding a
<code>:</code> or <code>/</code> suffix lists all members of given symbol or
directory.</p>
<p class="m-noindent">Use <span class="m-label m-dim"></span>
/ <span class="m-label m-dim"></span> to navigate through the list,
<span class="m-label m-dim">Enter</span> to go.
<span class="m-label m-dim">Tab</span> autocompletes common prefix, you can
copy a link to the result using <span class="m-label m-dim"></span>
<span class="m-label m-dim">L</span> while <span class="m-label m-dim"></span>
<span class="m-label m-dim">M</span> produces a Markdown link.</p>
</div>
<div class="m-text m-warning m-text-center" id="search-notfound">Sorry, nothing was found.</div>
<ul id="search-results"></ul>
</div>
</div>
</div>
</div>
</div>
<script src="search-v1.js"></script>
<script async="async" src="searchdata-v1.js"></script>
<footer><nav>
<div class="m-container">
<div class="m-row">
<div class="m-col-l-10 m-push-l-1">
<a class="tpp-external" href="https://github.com/marzer/tomlplusplus/" target="_blank">Github</a>
<a class="tpp-external" href="https://github.com/marzer/tomlplusplus/issues" target="_blank">Report
an
issue</a>
<br/><br/>Documentation
generated
using
<a class="tpp-external" href="https://mcss.mosra.cz/" target="_blank">m.css</a>
</div>
</div>
</div>
</nav></footer>
</body></html>