template<template< typename U, typename V, typename...Args > class ObjectType = std::map, template< typename U, typename...Args > class ArrayType = std::vector, class StringType = std::string, class BooleanType = bool, class NumberIntegerType = int64_t, class NumberFloatType = double, template< typename U > class AllocatorType = std::allocator></div>
<dlclass="section user"><dt>Requirements</dt><dd>This function satisfies the ReversibleContainer requirements:<ul>
<li>The complexity is constant.</li>
<li>Has the semantics of <code>const_cast<const <aclass="el"href="classnlohmann_1_1basic__json.html"title="a class to store JSON values ">basic_json</a>&>(*this).<aclass="el"href="classnlohmann_1_1basic__json_ace5106fb70f029fd7dfe99fc9eace3b5.html#ace5106fb70f029fd7dfe99fc9eace3b5"title="returns an iterator to the reverse-end ">rend()</a></code>.</li>
</ul>
</dd></dl>
<dlclass="section user"><dt>Example</dt><dd>The following code shows an example for <aclass="el"href="classnlohmann_1_1basic__json_ad7b898eb39e6e6c1cc870dde1f9517f0.html#ad7b898eb39e6e6c1cc870dde1f9517f0">crend</a>. <divclass="fragment"><divclass="line"><aname="l00001"></a><spanclass="lineno"> 1</span> <spanclass="preprocessor">#include <json.hpp></span></div>
<divclass="line"><aname="l00010"></a><spanclass="lineno"> 10</span> <spanclass="comment">// get an iterator to the reverse-end</span></div>
<divclass="line"><aname="l00011"></a><spanclass="lineno"> 11</span> <aclass="code"href="classnlohmann_1_1basic__json_1_1const__reverse__iterator.html">json::const_reverse_iterator</a> it = array.<aclass="code"href="classnlohmann_1_1basic__json_ad7b898eb39e6e6c1cc870dde1f9517f0.html#ad7b898eb39e6e6c1cc870dde1f9517f0">crend</a>();</div>
<divclass="line"><aname="l00013"></a><spanclass="lineno"> 13</span> <spanclass="comment">// increment the iterator to point to the first element</span></div>
<divclass="line"><aname="l00016"></a><spanclass="lineno"> 16</span> <spanclass="comment">// serialize the element that the iterator points to</span></div>
<divclass="ttc"id="classnlohmann_1_1basic__json_html"><divclass="ttname"><ahref="classnlohmann_1_1basic__json.html">nlohmann::basic_json</a></div><divclass="ttdoc">a class to store JSON values </div><divclass="ttdef"><b>Definition:</b> json.hpp:121</div></div>
<divclass="ttc"id="classnlohmann_1_1basic__json_ad7b898eb39e6e6c1cc870dde1f9517f0_html_ad7b898eb39e6e6c1cc870dde1f9517f0"><divclass="ttname"><ahref="classnlohmann_1_1basic__json_ad7b898eb39e6e6c1cc870dde1f9517f0.html#ad7b898eb39e6e6c1cc870dde1f9517f0">nlohmann::basic_json::crend</a></div><divclass="ttdeci">const_reverse_iterator crend() const noexcept</div><divclass="ttdoc">returns a const reverse iterator to one before the first </div><divclass="ttdef"><b>Definition:</b> json.hpp:2401</div></div>
<divclass="ttc"id="classnlohmann_1_1basic__json_1_1const__reverse__iterator_html"><divclass="ttname"><ahref="classnlohmann_1_1basic__json_1_1const__reverse__iterator.html">nlohmann::basic_json::const_reverse_iterator</a></div><divclass="ttdoc">a const reverse random access iterator for the basic_json class </div><divclass="ttdef"><b>Definition:</b> json.hpp:4517</div></div>