mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-22 03:55:53 +00:00
310 lines
49 KiB
HTML
310 lines
49 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
<meta name="generator" content="Doxygen 1.8.17"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>rippled: scope.h Source File</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr style="height: 56px;">
|
|
<td id="projectalign" style="padding-left: 0.5em;">
|
|
<div id="projectname">rippled
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.17 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
/* @license-end */</script>
|
|
<div id="main-nav"></div>
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<iframe src="javascript:void(0)" frameborder="0"
|
|
name="MSearchResults" id="MSearchResults">
|
|
</iframe>
|
|
</div>
|
|
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_df9c78dcf3f59a33b12284f95992a64b.html">ripple</a></li><li class="navelem"><a class="el" href="dir_5f536ab1985a8dcd28bcfd618bc58e92.html">basics</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle">
|
|
<div class="title">scope.h</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">//------------------------------------------------------------------------------</span></div>
|
|
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">/*</span></div>
|
|
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> This file is part of rippled: https://github.com/ripple/rippled</span></div>
|
|
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> Copyright (c) 2021 Ripple Inc.</span></div>
|
|
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> Permission to use, copy, modify, and/or distribute this software for any</span></div>
|
|
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> purpose with or without fee is hereby granted, provided that the above</span></div>
|
|
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> copyright notice and this permission notice appear in all copies.</span></div>
|
|
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES</span></div>
|
|
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF</span></div>
|
|
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR</span></div>
|
|
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES</span></div>
|
|
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN</span></div>
|
|
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF</span></div>
|
|
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.</span></div>
|
|
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment">*/</span></div>
|
|
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment">//==============================================================================</span></div>
|
|
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  </div>
|
|
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#ifndef RIPPLE_BASICS_SCOPE_H_INCLUDED</span></div>
|
|
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#define RIPPLE_BASICS_SCOPE_H_INCLUDED</span></div>
|
|
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  </div>
|
|
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include <<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/exception.html">exception</a>></span></div>
|
|
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include <<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/type_traits.html">type_traits</a>></span></div>
|
|
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include <<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/utility.html">utility</a>></span></div>
|
|
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  </div>
|
|
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="keyword">namespace </span><a class="code" href="namespaceripple.html">ripple</a> {</div>
|
|
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  </div>
|
|
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="comment">// RAII scope helpers. As specified in Library Fundamental, Version 3</span></div>
|
|
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="comment">// Basic design of idea: https://www.youtube.com/watch?v=WjTrfoiB0MQ</span></div>
|
|
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="comment">// Specification:</span></div>
|
|
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="comment">// http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2020/n4873.html#scopeguard</span></div>
|
|
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  </div>
|
|
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="comment">// This implementation deviates from the spec slightly:</span></div>
|
|
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="comment">// The scope_exit and scope_fail constructors taking a functor are not</span></div>
|
|
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="comment">// permitted to throw an exception. This was done because some compilers</span></div>
|
|
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="comment">// did not like the superfluous try/catch in the common instantiations</span></div>
|
|
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="comment">// where the construction was noexcept. Instead a static_assert is used</span></div>
|
|
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="comment">// to enforce this restriction.</span></div>
|
|
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  </div>
|
|
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="keyword">template</span> <<span class="keyword">class</span> EF></div>
|
|
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="classripple_1_1scope__exit.html"> 42</a></span> <span class="keyword">class </span><a class="code" href="classripple_1_1scope__exit.html">scope_exit</a></div>
|
|
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> {</div>
|
|
<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="classripple_1_1scope__exit.html#a1150c7e36bcce99882229f21f7695667"> 44</a></span>  EF <a class="code" href="classripple_1_1scope__exit.html#a1150c7e36bcce99882229f21f7695667">exit_function_</a>;</div>
|
|
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="classripple_1_1scope__exit.html#a93d29034a1f6f718bf475eacae6d9350"> 45</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classripple_1_1scope__exit.html#a93d29034a1f6f718bf475eacae6d9350">execute_on_destruction_</a>{<span class="keyword">true</span>};</div>
|
|
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  </div>
|
|
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <span class="keyword">public</span>:</div>
|
|
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="classripple_1_1scope__exit.html#aa1f29e52dc70312e1978bfbadc9669f7"> 48</a></span>  <a class="code" href="classripple_1_1scope__exit.html#aa1f29e52dc70312e1978bfbadc9669f7">~scope_exit</a>()</div>
|
|
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  {</div>
|
|
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keywordflow">if</span> (<a class="code" href="classripple_1_1scope__exit.html#a93d29034a1f6f718bf475eacae6d9350">execute_on_destruction_</a>)</div>
|
|
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <a class="code" href="classripple_1_1scope__exit.html#a1150c7e36bcce99882229f21f7695667">exit_function_</a>();</div>
|
|
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  }</div>
|
|
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  </div>
|
|
<div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="classripple_1_1scope__exit.html#a4c937afa37365a469aa67dc4c8102aca"> 54</a></span>  <a class="code" href="classripple_1_1scope__exit.html#a4c937afa37365a469aa67dc4c8102aca">scope_exit</a>(<a class="code" href="classripple_1_1scope__exit.html">scope_exit</a>&& rhs) noexcept(</div>
|
|
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  std::is_nothrow_move_constructible_v<EF> ||</div>
|
|
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  std::is_nothrow_copy_constructible_v<EF>)</div>
|
|
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  : <a class="code" href="classripple_1_1scope__exit.html#a1150c7e36bcce99882229f21f7695667">exit_function_</a>{std::forward<EF>(rhs.exit_function_)}</div>
|
|
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  , <a class="code" href="classripple_1_1scope__exit.html#a93d29034a1f6f718bf475eacae6d9350">execute_on_destruction_</a>{rhs.execute_on_destruction_}</div>
|
|
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  {</div>
|
|
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  rhs.release();</div>
|
|
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  }</div>
|
|
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  </div>
|
|
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <a class="code" href="classripple_1_1scope__exit.html#a4c937afa37365a469aa67dc4c8102aca">scope_exit</a>&</div>
|
|
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <a class="code" href="classripple_1_1scope__exit.html#a3c6d47f5f29e812ee8ff9476a09c82da">operator=</a>(<a class="code" href="classripple_1_1scope__exit.html#a4c937afa37365a469aa67dc4c8102aca">scope_exit</a>&&) = <span class="keyword">delete</span>;</div>
|
|
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  </div>
|
|
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <span class="keyword">template</span> <<span class="keyword">class</span> EFP></div>
|
|
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="classripple_1_1scope__exit.html#a60b4b228b4d7053b0546f203ac19b4b6"> 67</a></span>  <span class="keyword">explicit</span> <a class="code" href="classripple_1_1scope__exit.html#a60b4b228b4d7053b0546f203ac19b4b6">scope_exit</a>(</div>
|
|
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  EFP&& f,</div>
|
|
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/enable_if.html">std::enable_if_t</a><</div>
|
|
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  !<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::is_same_v</a><<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/remove_cv.html">std::remove_cv_t<EFP></a>, <a class="code" href="classripple_1_1scope__exit.html">scope_exit</a>> &&</div>
|
|
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  std::is_constructible_v<EF, EFP>>* = 0) noexcept</div>
|
|
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  : <a class="code" href="classripple_1_1scope__exit.html#a1150c7e36bcce99882229f21f7695667">exit_function_</a>{std::forward<EFP>(f)}</div>
|
|
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  {</div>
|
|
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  static_assert(</div>
|
|
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <a class="code" href="namespacestd.html">std</a>::</div>
|
|
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  is_nothrow_constructible_v<EF, decltype(std::forward<EFP>(f))>);</div>
|
|
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  }</div>
|
|
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  </div>
|
|
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="classripple_1_1scope__exit.html#aaaceccad7a4c6332e543906f64e0a555"> 80</a></span>  <a class="code" href="classripple_1_1scope__exit.html#aaaceccad7a4c6332e543906f64e0a555">release</a>() noexcept</div>
|
|
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  {</div>
|
|
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <a class="code" href="classripple_1_1scope__exit.html#a93d29034a1f6f718bf475eacae6d9350">execute_on_destruction_</a> = <span class="keyword">false</span>;</div>
|
|
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  }</div>
|
|
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span> };</div>
|
|
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  </div>
|
|
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span> <span class="keyword">template</span> <<span class="keyword">class</span> EF></div>
|
|
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span> <a class="code" href="namespaceripple.html#ac575feac1443a51768a36a2a31ca9d8d">scope_exit</a>(EF) -> scope_exit<EF>;</div>
|
|
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  </div>
|
|
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span> <span class="keyword">template</span> <<span class="keyword">class</span> EF></div>
|
|
<div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="classripple_1_1scope__fail.html"> 90</a></span> <span class="keyword">class </span><a class="code" href="classripple_1_1scope__fail.html">scope_fail</a></div>
|
|
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span> {</div>
|
|
<div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="classripple_1_1scope__fail.html#a95a1d35c5729fe5382bb6abcc42b36c2"> 92</a></span>  EF <a class="code" href="classripple_1_1scope__fail.html#a95a1d35c5729fe5382bb6abcc42b36c2">exit_function_</a>;</div>
|
|
<div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="classripple_1_1scope__fail.html#aecdd5644734c3efd156c160671cb7729"> 93</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classripple_1_1scope__fail.html#aecdd5644734c3efd156c160671cb7729">execute_on_destruction_</a>{<span class="keyword">true</span>};</div>
|
|
<div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="classripple_1_1scope__fail.html#ad4cd137fbfc37f7e95dff8a00c93a5eb"> 94</a></span>  <span class="keywordtype">int</span> <a class="code" href="classripple_1_1scope__fail.html#ad4cd137fbfc37f7e95dff8a00c93a5eb">uncaught_on_creation_</a>{<a class="codeRef" href="http://en.cppreference.com/w/cpp/error/uncaught_exception.html">std::uncaught_exceptions</a>()};</div>
|
|
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  </div>
|
|
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span> <span class="keyword">public</span>:</div>
|
|
<div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="classripple_1_1scope__fail.html#a361c6d3385ac3bac9d841aa6227e7e1c"> 97</a></span>  <a class="code" href="classripple_1_1scope__fail.html#a361c6d3385ac3bac9d841aa6227e7e1c">~scope_fail</a>()</div>
|
|
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  {</div>
|
|
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="keywordflow">if</span> (<a class="code" href="classripple_1_1scope__fail.html#aecdd5644734c3efd156c160671cb7729">execute_on_destruction_</a> &&</div>
|
|
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/error/uncaught_exception.html">std::uncaught_exceptions</a>() > <a class="code" href="classripple_1_1scope__fail.html#ad4cd137fbfc37f7e95dff8a00c93a5eb">uncaught_on_creation_</a>)</div>
|
|
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <a class="code" href="classripple_1_1scope__fail.html#a95a1d35c5729fe5382bb6abcc42b36c2">exit_function_</a>();</div>
|
|
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  }</div>
|
|
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  </div>
|
|
<div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="classripple_1_1scope__fail.html#af674158bb81f1f790df999edf4f6abd8"> 104</a></span>  <a class="code" href="classripple_1_1scope__fail.html#af674158bb81f1f790df999edf4f6abd8">scope_fail</a>(<a class="code" href="classripple_1_1scope__fail.html">scope_fail</a>&& rhs) noexcept(</div>
|
|
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  std::is_nothrow_move_constructible_v<EF> ||</div>
|
|
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  std::is_nothrow_copy_constructible_v<EF>)</div>
|
|
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  : <a class="code" href="classripple_1_1scope__fail.html#a95a1d35c5729fe5382bb6abcc42b36c2">exit_function_</a>{std::forward<EF>(rhs.exit_function_)}</div>
|
|
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  , <a class="code" href="classripple_1_1scope__fail.html#aecdd5644734c3efd156c160671cb7729">execute_on_destruction_</a>{rhs.execute_on_destruction_}</div>
|
|
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  , <a class="code" href="classripple_1_1scope__fail.html#ad4cd137fbfc37f7e95dff8a00c93a5eb">uncaught_on_creation_</a>{rhs.uncaught_on_creation_}</div>
|
|
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  {</div>
|
|
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  rhs.release();</div>
|
|
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  }</div>
|
|
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  </div>
|
|
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <a class="code" href="classripple_1_1scope__fail.html#af674158bb81f1f790df999edf4f6abd8">scope_fail</a>&</div>
|
|
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  <a class="code" href="classripple_1_1scope__fail.html#ab0c2fa592e0fa8e2d2480903f3e23fde">operator=</a>(<a class="code" href="classripple_1_1scope__fail.html#af674158bb81f1f790df999edf4f6abd8">scope_fail</a>&&) = <span class="keyword">delete</span>;</div>
|
|
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  </div>
|
|
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  <span class="keyword">template</span> <<span class="keyword">class</span> EFP></div>
|
|
<div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="classripple_1_1scope__fail.html#a3d25e4c0f448f59395a27039b3d45e5d"> 118</a></span>  <span class="keyword">explicit</span> <a class="code" href="classripple_1_1scope__fail.html#a3d25e4c0f448f59395a27039b3d45e5d">scope_fail</a>(</div>
|
|
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  EFP&& f,</div>
|
|
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/enable_if.html">std::enable_if_t</a><</div>
|
|
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  !<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::is_same_v</a><<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/remove_cv.html">std::remove_cv_t<EFP></a>, <a class="code" href="classripple_1_1scope__fail.html">scope_fail</a>> &&</div>
|
|
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  std::is_constructible_v<EF, EFP>>* = 0) noexcept</div>
|
|
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  : <a class="code" href="classripple_1_1scope__fail.html#a95a1d35c5729fe5382bb6abcc42b36c2">exit_function_</a>{std::forward<EFP>(f)}</div>
|
|
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  {</div>
|
|
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  static_assert(</div>
|
|
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <a class="code" href="namespacestd.html">std</a>::</div>
|
|
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  is_nothrow_constructible_v<EF, decltype(std::forward<EFP>(f))>);</div>
|
|
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  }</div>
|
|
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  </div>
|
|
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="classripple_1_1scope__fail.html#a4996219c5c7c2590b2e0ff74c4d19a8b"> 131</a></span>  <a class="code" href="classripple_1_1scope__fail.html#a4996219c5c7c2590b2e0ff74c4d19a8b">release</a>() noexcept</div>
|
|
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  {</div>
|
|
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <a class="code" href="classripple_1_1scope__fail.html#aecdd5644734c3efd156c160671cb7729">execute_on_destruction_</a> = <span class="keyword">false</span>;</div>
|
|
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  }</div>
|
|
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span> };</div>
|
|
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  </div>
|
|
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span> <span class="keyword">template</span> <<span class="keyword">class</span> EF></div>
|
|
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span> <a class="code" href="namespaceripple.html#a4c99ed07439e7628f80e9d9b69112806">scope_fail</a>(EF) -> scope_fail<EF>;</div>
|
|
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  </div>
|
|
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span> <span class="keyword">template</span> <<span class="keyword">class</span> EF></div>
|
|
<div class="line"><a name="l00141"></a><span class="lineno"><a class="line" href="classripple_1_1scope__success.html"> 141</a></span> <span class="keyword">class </span><a class="code" href="classripple_1_1scope__success.html">scope_success</a></div>
|
|
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span> {</div>
|
|
<div class="line"><a name="l00143"></a><span class="lineno"><a class="line" href="classripple_1_1scope__success.html#a4573a69e7e61b0f912e2db7137666d29"> 143</a></span>  EF <a class="code" href="classripple_1_1scope__success.html#a4573a69e7e61b0f912e2db7137666d29">exit_function_</a>;</div>
|
|
<div class="line"><a name="l00144"></a><span class="lineno"><a class="line" href="classripple_1_1scope__success.html#a4828166491efb93806680352c1a2a902"> 144</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classripple_1_1scope__success.html#a4828166491efb93806680352c1a2a902">execute_on_destruction_</a>{<span class="keyword">true</span>};</div>
|
|
<div class="line"><a name="l00145"></a><span class="lineno"><a class="line" href="classripple_1_1scope__success.html#aca3c3be1a92357527af10dbe775e1364"> 145</a></span>  <span class="keywordtype">int</span> <a class="code" href="classripple_1_1scope__success.html#aca3c3be1a92357527af10dbe775e1364">uncaught_on_creation_</a>{<a class="codeRef" href="http://en.cppreference.com/w/cpp/error/uncaught_exception.html">std::uncaught_exceptions</a>()};</div>
|
|
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  </div>
|
|
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span> <span class="keyword">public</span>:</div>
|
|
<div class="line"><a name="l00148"></a><span class="lineno"><a class="line" href="classripple_1_1scope__success.html#adec62bf052cdfe14299556d1e3df85c0"> 148</a></span>  <a class="code" href="classripple_1_1scope__success.html#adec62bf052cdfe14299556d1e3df85c0">~scope_success</a>() noexcept(noexcept(<a class="code" href="classripple_1_1scope__success.html#a4573a69e7e61b0f912e2db7137666d29">exit_function_</a>()))</div>
|
|
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  {</div>
|
|
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <span class="keywordflow">if</span> (<a class="code" href="classripple_1_1scope__success.html#a4828166491efb93806680352c1a2a902">execute_on_destruction_</a> &&</div>
|
|
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/error/uncaught_exception.html">std::uncaught_exceptions</a>() <= <a class="code" href="classripple_1_1scope__success.html#aca3c3be1a92357527af10dbe775e1364">uncaught_on_creation_</a>)</div>
|
|
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  <a class="code" href="classripple_1_1scope__success.html#a4573a69e7e61b0f912e2db7137666d29">exit_function_</a>();</div>
|
|
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  }</div>
|
|
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  </div>
|
|
<div class="line"><a name="l00155"></a><span class="lineno"><a class="line" href="classripple_1_1scope__success.html#aabd51b5cb12949d649d5eb81f7a9edae"> 155</a></span>  <a class="code" href="classripple_1_1scope__success.html#aabd51b5cb12949d649d5eb81f7a9edae">scope_success</a>(<a class="code" href="classripple_1_1scope__success.html">scope_success</a>&& rhs) noexcept(</div>
|
|
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  std::is_nothrow_move_constructible_v<EF> ||</div>
|
|
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  std::is_nothrow_copy_constructible_v<EF>)</div>
|
|
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  : <a class="code" href="classripple_1_1scope__success.html#a4573a69e7e61b0f912e2db7137666d29">exit_function_</a>{std::forward<EF>(rhs.exit_function_)}</div>
|
|
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  , <a class="code" href="classripple_1_1scope__success.html#a4828166491efb93806680352c1a2a902">execute_on_destruction_</a>{rhs.execute_on_destruction_}</div>
|
|
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  , <a class="code" href="classripple_1_1scope__success.html#aca3c3be1a92357527af10dbe775e1364">uncaught_on_creation_</a>{rhs.uncaught_on_creation_}</div>
|
|
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  {</div>
|
|
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  rhs.release();</div>
|
|
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  }</div>
|
|
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  </div>
|
|
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  <a class="code" href="classripple_1_1scope__success.html#aabd51b5cb12949d649d5eb81f7a9edae">scope_success</a>&</div>
|
|
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  <a class="code" href="classripple_1_1scope__success.html#a469deedb4c257cafb04be03bce6950fa">operator=</a>(<a class="code" href="classripple_1_1scope__success.html#aabd51b5cb12949d649d5eb81f7a9edae">scope_success</a>&&) = <span class="keyword">delete</span>;</div>
|
|
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  </div>
|
|
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  <span class="keyword">template</span> <<span class="keyword">class</span> EFP></div>
|
|
<div class="line"><a name="l00169"></a><span class="lineno"><a class="line" href="classripple_1_1scope__success.html#a03e12021d6d54dac0e4c1a13b27feadb"> 169</a></span>  <span class="keyword">explicit</span> <a class="code" href="classripple_1_1scope__success.html#a03e12021d6d54dac0e4c1a13b27feadb">scope_success</a>(</div>
|
|
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  EFP&& f,</div>
|
|
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/enable_if.html">std::enable_if_t</a><</div>
|
|
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  !<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::is_same_v</a><<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/remove_cv.html">std::remove_cv_t<EFP></a>, <a class="code" href="classripple_1_1scope__success.html">scope_success</a>> &&</div>
|
|
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  std::is_constructible_v<EF, EFP>>* =</div>
|
|
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  0) noexcept(<a class="code" href="namespacestd.html">std</a>::is_nothrow_constructible_v<EF, EFP> || <a class="code" href="namespacestd.html">std</a>::is_nothrow_constructible_v<EF, EFP&>)</div>
|
|
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  : <a class="code" href="classripple_1_1scope__success.html#a4573a69e7e61b0f912e2db7137666d29">exit_function_</a>{std::forward<EFP>(f)}</div>
|
|
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  {</div>
|
|
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  }</div>
|
|
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  </div>
|
|
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00180"></a><span class="lineno"><a class="line" href="classripple_1_1scope__success.html#a872976a2e74fbe290c1d474f27905317"> 180</a></span>  <a class="code" href="classripple_1_1scope__success.html#a872976a2e74fbe290c1d474f27905317">release</a>() noexcept</div>
|
|
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  {</div>
|
|
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  <a class="code" href="classripple_1_1scope__success.html#a4828166491efb93806680352c1a2a902">execute_on_destruction_</a> = <span class="keyword">false</span>;</div>
|
|
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  }</div>
|
|
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span> };</div>
|
|
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  </div>
|
|
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span> <span class="keyword">template</span> <<span class="keyword">class</span> EF></div>
|
|
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span> <a class="code" href="namespaceripple.html#ab1c672528ee4357c70a88ca9c6e9baca">scope_success</a>(EF) -> scope_success<EF>;</div>
|
|
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  </div>
|
|
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span> } <span class="comment">// namespace ripple</span></div>
|
|
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  </div>
|
|
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span> <span class="preprocessor">#endif</span></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<div class="ttc" id="aclassripple_1_1scope__success_html_aca3c3be1a92357527af10dbe775e1364"><div class="ttname"><a href="classripple_1_1scope__success.html#aca3c3be1a92357527af10dbe775e1364">ripple::scope_success::uncaught_on_creation_</a></div><div class="ttdeci">int uncaught_on_creation_</div><div class="ttdef"><b>Definition:</b> <a href="scope_8h_source.html#l00145">scope.h:145</a></div></div>
|
|
<div class="ttc" id="ais_same_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/is_same.html">std::is_same_v</a></div><div class="ttdeci">T is_same_v</div></div>
|
|
<div class="ttc" id="autility_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/utility.html">utility</a></div></div>
|
|
<div class="ttc" id="aexception_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/exception.html">exception</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1scope__success_html"><div class="ttname"><a href="classripple_1_1scope__success.html">ripple::scope_success</a></div><div class="ttdef"><b>Definition:</b> <a href="scope_8h_source.html#l00141">scope.h:141</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_ac575feac1443a51768a36a2a31ca9d8d"><div class="ttname"><a href="namespaceripple.html#ac575feac1443a51768a36a2a31ca9d8d">ripple::scope_exit</a></div><div class="ttdeci">scope_exit(EF) -> scope_exit< EF ></div></div>
|
|
<div class="ttc" id="aclassripple_1_1scope__fail_html_af674158bb81f1f790df999edf4f6abd8"><div class="ttname"><a href="classripple_1_1scope__fail.html#af674158bb81f1f790df999edf4f6abd8">ripple::scope_fail::scope_fail</a></div><div class="ttdeci">scope_fail(scope_fail &&rhs) noexcept(std::is_nothrow_move_constructible_v< EF >||std::is_nothrow_copy_constructible_v< EF >)</div><div class="ttdef"><b>Definition:</b> <a href="scope_8h_source.html#l00104">scope.h:104</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1scope__success_html_a03e12021d6d54dac0e4c1a13b27feadb"><div class="ttname"><a href="classripple_1_1scope__success.html#a03e12021d6d54dac0e4c1a13b27feadb">ripple::scope_success::scope_success</a></div><div class="ttdeci">scope_success(EFP &&f, std::enable_if_t< !std::is_same_v< std::remove_cv_t< EFP >, scope_success > &&std::is_constructible_v< EF, EFP >> *=0) noexcept(std::is_nothrow_constructible_v< EF, EFP >||std::is_nothrow_constructible_v< EF, EFP & >)</div><div class="ttdef"><b>Definition:</b> <a href="scope_8h_source.html#l00169">scope.h:169</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1scope__fail_html_ab0c2fa592e0fa8e2d2480903f3e23fde"><div class="ttname"><a href="classripple_1_1scope__fail.html#ab0c2fa592e0fa8e2d2480903f3e23fde">ripple::scope_fail::operator=</a></div><div class="ttdeci">scope_fail & operator=(scope_fail &&)=delete</div></div>
|
|
<div class="ttc" id="aclassripple_1_1scope__success_html_a4828166491efb93806680352c1a2a902"><div class="ttname"><a href="classripple_1_1scope__success.html#a4828166491efb93806680352c1a2a902">ripple::scope_success::execute_on_destruction_</a></div><div class="ttdeci">bool execute_on_destruction_</div><div class="ttdef"><b>Definition:</b> <a href="scope_8h_source.html#l00144">scope.h:144</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1scope__fail_html_a95a1d35c5729fe5382bb6abcc42b36c2"><div class="ttname"><a href="classripple_1_1scope__fail.html#a95a1d35c5729fe5382bb6abcc42b36c2">ripple::scope_fail::exit_function_</a></div><div class="ttdeci">EF exit_function_</div><div class="ttdef"><b>Definition:</b> <a href="scope_8h_source.html#l00092">scope.h:92</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1scope__exit_html_aa1f29e52dc70312e1978bfbadc9669f7"><div class="ttname"><a href="classripple_1_1scope__exit.html#aa1f29e52dc70312e1978bfbadc9669f7">ripple::scope_exit::~scope_exit</a></div><div class="ttdeci">~scope_exit()</div><div class="ttdef"><b>Definition:</b> <a href="scope_8h_source.html#l00048">scope.h:48</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1scope__success_html_adec62bf052cdfe14299556d1e3df85c0"><div class="ttname"><a href="classripple_1_1scope__success.html#adec62bf052cdfe14299556d1e3df85c0">ripple::scope_success::~scope_success</a></div><div class="ttdeci">~scope_success() noexcept(noexcept(exit_function_()))</div><div class="ttdef"><b>Definition:</b> <a href="scope_8h_source.html#l00148">scope.h:148</a></div></div>
|
|
<div class="ttc" id="aenable_if_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/enable_if.html">std::enable_if_t</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1scope__fail_html"><div class="ttname"><a href="classripple_1_1scope__fail.html">ripple::scope_fail</a></div><div class="ttdef"><b>Definition:</b> <a href="scope_8h_source.html#l00090">scope.h:90</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1scope__exit_html"><div class="ttname"><a href="classripple_1_1scope__exit.html">ripple::scope_exit</a></div><div class="ttdef"><b>Definition:</b> <a href="scope_8h_source.html#l00042">scope.h:42</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1scope__exit_html_a4c937afa37365a469aa67dc4c8102aca"><div class="ttname"><a href="classripple_1_1scope__exit.html#a4c937afa37365a469aa67dc4c8102aca">ripple::scope_exit::scope_exit</a></div><div class="ttdeci">scope_exit(scope_exit &&rhs) noexcept(std::is_nothrow_move_constructible_v< EF >||std::is_nothrow_copy_constructible_v< EF >)</div><div class="ttdef"><b>Definition:</b> <a href="scope_8h_source.html#l00054">scope.h:54</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1scope__fail_html_ad4cd137fbfc37f7e95dff8a00c93a5eb"><div class="ttname"><a href="classripple_1_1scope__fail.html#ad4cd137fbfc37f7e95dff8a00c93a5eb">ripple::scope_fail::uncaught_on_creation_</a></div><div class="ttdeci">int uncaught_on_creation_</div><div class="ttdef"><b>Definition:</b> <a href="scope_8h_source.html#l00094">scope.h:94</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1scope__fail_html_a3d25e4c0f448f59395a27039b3d45e5d"><div class="ttname"><a href="classripple_1_1scope__fail.html#a3d25e4c0f448f59395a27039b3d45e5d">ripple::scope_fail::scope_fail</a></div><div class="ttdeci">scope_fail(EFP &&f, std::enable_if_t< !std::is_same_v< std::remove_cv_t< EFP >, scope_fail > &&std::is_constructible_v< EF, EFP >> *=0) noexcept</div><div class="ttdef"><b>Definition:</b> <a href="scope_8h_source.html#l00118">scope.h:118</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_ab1c672528ee4357c70a88ca9c6e9baca"><div class="ttname"><a href="namespaceripple.html#ab1c672528ee4357c70a88ca9c6e9baca">ripple::scope_success</a></div><div class="ttdeci">scope_success(EF) -> scope_success< EF ></div></div>
|
|
<div class="ttc" id="aclassripple_1_1scope__exit_html_a93d29034a1f6f718bf475eacae6d9350"><div class="ttname"><a href="classripple_1_1scope__exit.html#a93d29034a1f6f718bf475eacae6d9350">ripple::scope_exit::execute_on_destruction_</a></div><div class="ttdeci">bool execute_on_destruction_</div><div class="ttdef"><b>Definition:</b> <a href="scope_8h_source.html#l00045">scope.h:45</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1scope__success_html_a872976a2e74fbe290c1d474f27905317"><div class="ttname"><a href="classripple_1_1scope__success.html#a872976a2e74fbe290c1d474f27905317">ripple::scope_success::release</a></div><div class="ttdeci">void release() noexcept</div><div class="ttdef"><b>Definition:</b> <a href="scope_8h_source.html#l00180">scope.h:180</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1scope__exit_html_a3c6d47f5f29e812ee8ff9476a09c82da"><div class="ttname"><a href="classripple_1_1scope__exit.html#a3c6d47f5f29e812ee8ff9476a09c82da">ripple::scope_exit::operator=</a></div><div class="ttdeci">scope_exit & operator=(scope_exit &&)=delete</div></div>
|
|
<div class="ttc" id="aclassripple_1_1scope__success_html_a469deedb4c257cafb04be03bce6950fa"><div class="ttname"><a href="classripple_1_1scope__success.html#a469deedb4c257cafb04be03bce6950fa">ripple::scope_success::operator=</a></div><div class="ttdeci">scope_success & operator=(scope_success &&)=delete</div></div>
|
|
<div class="ttc" id="aclassripple_1_1scope__exit_html_a1150c7e36bcce99882229f21f7695667"><div class="ttname"><a href="classripple_1_1scope__exit.html#a1150c7e36bcce99882229f21f7695667">ripple::scope_exit::exit_function_</a></div><div class="ttdeci">EF exit_function_</div><div class="ttdef"><b>Definition:</b> <a href="scope_8h_source.html#l00044">scope.h:44</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1scope__success_html_a4573a69e7e61b0f912e2db7137666d29"><div class="ttname"><a href="classripple_1_1scope__success.html#a4573a69e7e61b0f912e2db7137666d29">ripple::scope_success::exit_function_</a></div><div class="ttdeci">EF exit_function_</div><div class="ttdef"><b>Definition:</b> <a href="scope_8h_source.html#l00143">scope.h:143</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1scope__exit_html_aaaceccad7a4c6332e543906f64e0a555"><div class="ttname"><a href="classripple_1_1scope__exit.html#aaaceccad7a4c6332e543906f64e0a555">ripple::scope_exit::release</a></div><div class="ttdeci">void release() noexcept</div><div class="ttdef"><b>Definition:</b> <a href="scope_8h_source.html#l00080">scope.h:80</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1scope__success_html_aabd51b5cb12949d649d5eb81f7a9edae"><div class="ttname"><a href="classripple_1_1scope__success.html#aabd51b5cb12949d649d5eb81f7a9edae">ripple::scope_success::scope_success</a></div><div class="ttdeci">scope_success(scope_success &&rhs) noexcept(std::is_nothrow_move_constructible_v< EF >||std::is_nothrow_copy_constructible_v< EF >)</div><div class="ttdef"><b>Definition:</b> <a href="scope_8h_source.html#l00155">scope.h:155</a></div></div>
|
|
<div class="ttc" id="auncaught_exception_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/error/uncaught_exception.html">std::uncaught_exceptions</a></div><div class="ttdeci">T uncaught_exceptions(T... args)</div></div>
|
|
<div class="ttc" id="anamespaceripple_html"><div class="ttname"><a href="namespaceripple.html">ripple</a></div><div class="ttdoc">Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.</div><div class="ttdef"><b>Definition:</b> <a href="RCLCensorshipDetector_8h_source.html#l00029">RCLCensorshipDetector.h:29</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1scope__exit_html_a60b4b228b4d7053b0546f203ac19b4b6"><div class="ttname"><a href="classripple_1_1scope__exit.html#a60b4b228b4d7053b0546f203ac19b4b6">ripple::scope_exit::scope_exit</a></div><div class="ttdeci">scope_exit(EFP &&f, std::enable_if_t< !std::is_same_v< std::remove_cv_t< EFP >, scope_exit > &&std::is_constructible_v< EF, EFP >> *=0) noexcept</div><div class="ttdef"><b>Definition:</b> <a href="scope_8h_source.html#l00067">scope.h:67</a></div></div>
|
|
<div class="ttc" id="anamespacestd_html"><div class="ttname"><a href="namespacestd.html">std</a></div><div class="ttdoc">STL namespace.</div></div>
|
|
<div class="ttc" id="aclassripple_1_1scope__fail_html_a4996219c5c7c2590b2e0ff74c4d19a8b"><div class="ttname"><a href="classripple_1_1scope__fail.html#a4996219c5c7c2590b2e0ff74c4d19a8b">ripple::scope_fail::release</a></div><div class="ttdeci">void release() noexcept</div><div class="ttdef"><b>Definition:</b> <a href="scope_8h_source.html#l00131">scope.h:131</a></div></div>
|
|
<div class="ttc" id="aremove_cv_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/remove_cv.html">std::remove_cv_t</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1scope__fail_html_aecdd5644734c3efd156c160671cb7729"><div class="ttname"><a href="classripple_1_1scope__fail.html#aecdd5644734c3efd156c160671cb7729">ripple::scope_fail::execute_on_destruction_</a></div><div class="ttdeci">bool execute_on_destruction_</div><div class="ttdef"><b>Definition:</b> <a href="scope_8h_source.html#l00093">scope.h:93</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1scope__fail_html_a361c6d3385ac3bac9d841aa6227e7e1c"><div class="ttname"><a href="classripple_1_1scope__fail.html#a361c6d3385ac3bac9d841aa6227e7e1c">ripple::scope_fail::~scope_fail</a></div><div class="ttdeci">~scope_fail()</div><div class="ttdef"><b>Definition:</b> <a href="scope_8h_source.html#l00097">scope.h:97</a></div></div>
|
|
<div class="ttc" id="atype_traits_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/type_traits.html">type_traits</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a4c99ed07439e7628f80e9d9b69112806"><div class="ttname"><a href="namespaceripple.html#a4c99ed07439e7628f80e9d9b69112806">ripple::scope_fail</a></div><div class="ttdeci">scope_fail(EF) -> scope_fail< EF ></div></div>
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by  <a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
|
</a> 1.8.17
|
|
</small></address>
|
|
</body>
|
|
</html>
|