Files
tdesktop/Telegram/ThirdParty/range-v3/doc/gh-pages/structmeta_1_1defer.html
allhaileris afb81b8278
Some checks failed
Docker. / Ubuntu (push) Has been cancelled
User-agent updater. / User-agent (push) Failing after 15s
Lock Threads / lock (push) Failing after 10s
Waiting for answer. / waiting-for-answer (push) Failing after 22s
Needs user action. / needs-user-action (push) Failing after 8s
Can't reproduce. / cant-reproduce (push) Failing after 8s
Close stale issues and PRs / stale (push) Has been cancelled
init
2026-02-16 15:50:16 +03:00

138 lines
9.1 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=11"/>
<meta name="generator" content="Doxygen 1.9.4"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Range-v3: meta::defer&lt; C, Ts &gt; Struct Template Reference</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="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.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>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function() { init_search(); });
/* @license-end */
</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">Range-v3
</div>
<div id="projectbrief">Range algorithms, views, and actions for the Standard Library</div>
</td>
<td> <div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.svg"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.svg" alt=""/></a>
</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.4 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('structmeta_1_1defer.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- 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 class="header">
<div class="headertitle"><div class="title">meta::defer&lt; C, Ts &gt; Struct Template Reference<div class="ingroups"><a class="el" href="group__meta.html">Meta</a> &raquo; <a class="el" href="group__trait.html">Trait</a> &raquo; <a class="el" href="group__invocation.html">Invocation</a></div></div></div>
</div><!--header-->
<div class="contents">
<p>A wrapper that defers the instantiation of a template <code>C</code> with type parameters <code>Ts</code> in a <code>lambda</code> or <code>let</code> expression.
<a href="structmeta_1_1defer.html#details">More...</a></p>
<p><code>#include &lt;meta/meta.hpp&gt;</code></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
<img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for meta::defer&lt; C, Ts &gt;:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center">
<img src="structmeta_1_1defer.png" usemap="#meta::defer_3C_20C_2C_20Ts_20_3E_map" alt=""/>
<map id="meta::defer_3C_20C_2C_20Ts_20_3E_map" name="meta::defer_3C_20C_2C_20Ts_20_3E_map">
<area href="structconcepts_1_1common__reference_3_01T_00_01U_00_01Vs_8_8_8_01_4.html" alt="concepts::common_reference&lt; T, U, Vs... &gt;" shape="rect" coords="0,112,343,136"/>
<area href="structconcepts_1_1common__type_3_01T_00_01U_00_01Vs_8_8_8_01_4.html" alt="concepts::common_type&lt; T, U, Vs... &gt;" shape="rect" coords="353,112,696,136"/>
<area href="structmeta_1_1extension_1_1apply_3_01Fn_00_01Ret_07Args_8_8_8_08_4.html" alt="meta::extension::apply&lt; Fn, Ret(Args...)&gt;" shape="rect" coords="706,112,1049,136"/>
<area href="structmeta_1_1extension_1_1apply_3_01Fn_00_01T_3_01Ts_8_8_8_01_4_01_4.html" alt="meta::extension::apply&lt; Fn, T&lt; Ts... &gt; &gt;" shape="rect" coords="1059,112,1402,136"/>
<area href="structmeta_1_1extension_1_1apply_3_01Fn_00_01integer__sequence_3_01T_00_01Is_8_8_8_01_4_01_4.html" alt="meta::extension::apply&lt; Fn, integer_sequence&lt; T, Is... &gt; &gt;" shape="rect" coords="1412,112,1755,136"/>
</map>
</div></div>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><div class="compoundTemplParams">template&lt;template&lt; typename... &gt; class C, typename... Ts&gt;<br />
struct meta::defer&lt; C, Ts &gt;</div><p >A wrapper that defers the instantiation of a template <code>C</code> with type parameters <code>Ts</code> in a <code>lambda</code> or <code>let</code> expression. </p>
<p >In the code below, the lambda would ideally be written as <code>lambda&lt;_a,_b,push_back&lt;_a,_b&gt;&gt;</code>, however this fails since <code>push_back</code> expects its first argument to be a list, not a placeholder. Instead, we express it using <code>defer</code> as follows:</p>
<div class="fragment"><div class="line"><span class="keyword">template</span> &lt;<span class="keyword">typename</span> L&gt;</div>
<div class="line"><span class="keyword">using </span><a class="code hl_typedef" href="group__transformation.html#gafb5c3e09e2b1dee384fee44fe54f7df9">reverse</a> = <a class="code hl_typedef" href="group__transformation.html#ga731ad47dfb1f72563fdad66fa5ae2a1a">reverse_fold&lt;L, list&lt;&gt;</a>, <a class="code hl_typedef" href="group__trait.html#gad34f270fe54eeffd113b91f56af6cd6f">lambda&lt;_a, _b, defer&lt;push_back, _a, _b&gt;</a>&gt;&gt;;</div>
<div class="ttc" id="agroup__trait_html_gad34f270fe54eeffd113b91f56af6cd6f"><div class="ttname"><a href="group__trait.html#gad34f270fe54eeffd113b91f56af6cd6f">meta::lambda</a></div><div class="ttdeci">detail::lambda_&lt; list&lt; Ts... &gt; &gt; lambda</div><div class="ttdoc">For creating anonymous Invocables.</div><div class="ttdef"><b>Definition:</b> meta.hpp:3592</div></div>
<div class="ttc" id="agroup__transformation_html_ga731ad47dfb1f72563fdad66fa5ae2a1a"><div class="ttname"><a href="group__transformation.html#ga731ad47dfb1f72563fdad66fa5ae2a1a">meta::reverse_fold</a></div><div class="ttdeci">_t&lt; detail::reverse_fold_&lt; L, State, Fn &gt; &gt; reverse_fold</div><div class="ttdoc">Return a new meta::list constructed by doing a right fold of the list L using binary invocable Fn and...</div><div class="ttdef"><b>Definition:</b> meta.hpp:1661</div></div>
<div class="ttc" id="agroup__transformation_html_gafb5c3e09e2b1dee384fee44fe54f7df9"><div class="ttname"><a href="group__transformation.html#gafb5c3e09e2b1dee384fee44fe54f7df9">meta::reverse</a></div><div class="ttdeci">_t&lt; detail::reverse_&lt; L &gt; &gt; reverse</div><div class="ttdoc">Return a new meta::list by reversing the elements in the list L.</div><div class="ttdef"><b>Definition:</b> meta.hpp:2996</div></div>
</div><!-- fragment --> </div></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="namespacemeta.html">meta</a></li><li class="navelem"><a class="el" href="structmeta_1_1defer.html">defer</a></li>
<li class="footer">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.4 </li>
</ul>
</div>
</body>
</html>