mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-21 03:26:01 +00:00
124 lines
10 KiB
HTML
124 lines
10 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" lang="en-US">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
|
<meta name="generator" content="Doxygen 1.9.8"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>rippled: maybe_const.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 id="projectrow">
|
|
<td id="projectalign">
|
|
<div id="projectname">rippled
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.9.8 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
var searchBox = new SearchBox("searchBox", "search/",'.html');
|
|
/* @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:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
/* @license-end */
|
|
</script>
|
|
<div id="main-nav"></div>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(document).ready(function() { init_codefold(0); });
|
|
/* @license-end */
|
|
</script>
|
|
<!-- 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">
|
|
<div id="MSearchResults">
|
|
<div class="SRPage">
|
|
<div id="SRIndex">
|
|
<div id="SRResults"></div>
|
|
<div class="SRStatus" id="Loading">Loading...</div>
|
|
<div class="SRStatus" id="Searching">Searching...</div>
|
|
<div class="SRStatus" id="NoMatches">No Matches</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_0103a8ad82dcc2c51f5cde661b4b5cb7.html">xrpl</a></li><li class="navelem"><a class="el" href="dir_31b47b71b675f5c4d1b67be42516b2a9.html">beast</a></li><li class="navelem"><a class="el" href="dir_252ea425b8516b0628e052e5ec460ff2.html">utility</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle"><div class="title">maybe_const.h</div></div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="preprocessor">#ifndef BEAST_UTILITY_MAYBE_CONST_H_INCLUDED</span></div>
|
|
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="preprocessor">#define BEAST_UTILITY_MAYBE_CONST_H_INCLUDED</span></div>
|
|
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span> </div>
|
|
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</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 id="l00005" name="l00005"></a><span class="lineno"> 5</span> </div>
|
|
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespacebeast.html">beast</a> {</div>
|
|
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span> </div>
|
|
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="keyword">template</span> <<span class="keywordtype">bool</span> IsConst, <span class="keyword">class</span> T></div>
|
|
<div class="foldopen" id="foldopen00010" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"><a class="line" href="structbeast_1_1maybe__const.html"> 10</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structbeast_1_1maybe__const.html">maybe_const</a></div>
|
|
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span>{</div>
|
|
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"><a class="line" href="structbeast_1_1maybe__const.html#af635f99069c4285bf09e02dbb81b5708"> 12</a></span> <span class="keyword">explicit</span> <a class="code hl_function" href="structbeast_1_1maybe__const.html#af635f99069c4285bf09e02dbb81b5708">maybe_const</a>() = <span class="keywordflow">default</span>;</div>
|
|
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"><a class="line" href="structbeast_1_1maybe__const.html#a62817e087ae7434ffcef5c569f1e1198"> 13</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="structbeast_1_1maybe__const.html#a62817e087ae7434ffcef5c569f1e1198">type</a> = <span class="keyword">typename</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/conditional.html">std::conditional</a><</div>
|
|
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span> IsConst,</div>
|
|
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span> <span class="keyword">typename</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/remove_cv.html">std::remove_const<T>::type</a> <span class="keyword">const</span>,</div>
|
|
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span> <span class="keyword">typename</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/remove_cv.html">std::remove_const<T>::type</a>><a class="code hl_typedef" href="structbeast_1_1maybe__const.html#a62817e087ae7434ffcef5c569f1e1198">::type</a>;</div>
|
|
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span> </div>
|
|
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span><span class="keyword">template</span> <<span class="keywordtype">bool</span> IsConst, <span class="keyword">class</span> T></div>
|
|
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"><a class="line" href="namespacebeast.html#a1a2346bace9bdb5651e8aefc6b20de4e"> 21</a></span><span class="keyword">using </span><a class="code hl_typedef" href="namespacebeast.html#a1a2346bace9bdb5651e8aefc6b20de4e">maybe_const_t</a> = <span class="keyword">typename</span> <a class="code hl_typedef" href="structbeast_1_1maybe__const.html#a62817e087ae7434ffcef5c569f1e1198">maybe_const<IsConst, T>::type</a>;</div>
|
|
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> </div>
|
|
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span>} <span class="comment">// namespace beast</span></div>
|
|
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> </div>
|
|
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span><span class="preprocessor">#endif</span></div>
|
|
<div class="ttc" id="aconditional_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/conditional.html">std::conditional</a></div></div>
|
|
<div class="ttc" id="anamespacebeast_html"><div class="ttname"><a href="namespacebeast.html">beast</a></div><div class="ttdef"><b>Definition</b> <a href="base__uint_8h_source.html#l00653">base_uint.h:653</a></div></div>
|
|
<div class="ttc" id="anamespacebeast_html_a1a2346bace9bdb5651e8aefc6b20de4e"><div class="ttname"><a href="namespacebeast.html#a1a2346bace9bdb5651e8aefc6b20de4e">beast::maybe_const_t</a></div><div class="ttdeci">typename maybe_const< IsConst, T >::type maybe_const_t</div><div class="ttdoc">Alias for omitting typename.</div><div class="ttdef"><b>Definition</b> <a href="maybe__const_8h_source.html#l00021">maybe_const.h:21</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_const</a></div></div>
|
|
<div class="ttc" id="astructbeast_1_1maybe__const_html"><div class="ttname"><a href="structbeast_1_1maybe__const.html">beast::maybe_const</a></div><div class="ttdoc">Makes T const or non const depending on a bool.</div><div class="ttdef"><b>Definition</b> <a href="maybe__const_8h_source.html#l00010">maybe_const.h:11</a></div></div>
|
|
<div class="ttc" id="astructbeast_1_1maybe__const_html_a62817e087ae7434ffcef5c569f1e1198"><div class="ttname"><a href="structbeast_1_1maybe__const.html#a62817e087ae7434ffcef5c569f1e1198">beast::maybe_const::type</a></div><div class="ttdeci">typename std::conditional< IsConst, typename std::remove_const< T >::type const, typename std::remove_const< T >::type >::type type</div><div class="ttdef"><b>Definition</b> <a href="maybe__const_8h_source.html#l00013">maybe_const.h:16</a></div></div>
|
|
<div class="ttc" id="astructbeast_1_1maybe__const_html_af635f99069c4285bf09e02dbb81b5708"><div class="ttname"><a href="structbeast_1_1maybe__const.html#af635f99069c4285bf09e02dbb81b5708">beast::maybe_const::maybe_const</a></div><div class="ttdeci">maybe_const()=default</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><!-- fragment --></div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
|
|
</small></address>
|
|
</body>
|
|
</html>
|