Micro template library A library for building device drivers
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 

134 lignes
34 KiB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.14"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  8. <title>uTL: include/utl/meta/integral.h Source File</title>
  9. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  10. <script type="text/javascript" src="jquery.js"></script>
  11. <script type="text/javascript" src="dynsections.js"></script>
  12. <link href="navtree.css" rel="stylesheet" type="text/css"/>
  13. <script type="text/javascript" src="resize.js"></script>
  14. <script type="text/javascript" src="navtreedata.js"></script>
  15. <script type="text/javascript" src="navtree.js"></script>
  16. <script type="text/javascript">
  17. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  18. $(document).ready(initResizable);
  19. /* @license-end */</script>
  20. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  21. <script type="text/javascript" src="search/searchdata.js"></script>
  22. <script type="text/javascript" src="search/search.js"></script>
  23. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  24. </head>
  25. <body>
  26. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  27. <div id="titlearea">
  28. <table cellspacing="0" cellpadding="0">
  29. <tbody>
  30. <tr style="height: 56px;">
  31. <td id="projectalign" style="padding-left: 0.5em;">
  32. <div id="projectname">uTL
  33. </div>
  34. <div id="projectbrief">micro Template library</div>
  35. </td>
  36. </tr>
  37. </tbody>
  38. </table>
  39. </div>
  40. <!-- end header part -->
  41. <!-- Generated by Doxygen 1.8.14 -->
  42. <script type="text/javascript">
  43. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  44. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  45. /* @license-end */
  46. </script>
  47. <script type="text/javascript" src="menudata.js"></script>
  48. <script type="text/javascript" src="menu.js"></script>
  49. <script type="text/javascript">
  50. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  51. $(function() {
  52. initMenu('',true,false,'search.php','Search');
  53. $(document).ready(function() { init_search(); });
  54. });
  55. /* @license-end */</script>
  56. <div id="main-nav"></div>
  57. </div><!-- top -->
  58. <div id="side-nav" class="ui-resizable side-nav-resizable">
  59. <div id="nav-tree">
  60. <div id="nav-tree-contents">
  61. <div id="nav-sync" class="sync"></div>
  62. </div>
  63. </div>
  64. <div id="splitbar" style="-moz-user-select:none;"
  65. class="ui-resizable-handle">
  66. </div>
  67. </div>
  68. <script type="text/javascript">
  69. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  70. $(document).ready(function(){initNavTree('integral_8h_source.html','');});
  71. /* @license-end */
  72. </script>
  73. <div id="doc-content">
  74. <!-- window showing the filter options -->
  75. <div id="MSearchSelectWindow"
  76. onmouseover="return searchBox.OnSearchSelectShow()"
  77. onmouseout="return searchBox.OnSearchSelectHide()"
  78. onkeydown="return searchBox.OnSearchSelectKey(event)">
  79. </div>
  80. <!-- iframe showing the search results (closed by default) -->
  81. <div id="MSearchResultsWindow">
  82. <iframe src="javascript:void(0)" frameborder="0"
  83. name="MSearchResults" id="MSearchResults">
  84. </iframe>
  85. </div>
  86. <div class="header">
  87. <div class="headertitle">
  88. <div class="title">integral.h</div> </div>
  89. </div><!--header-->
  90. <div class="contents">
  91. <a href="integral_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="preprocessor">#ifndef __utl_meta_integralconstant_h__</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="preprocessor">#define __utl_meta_integralconstant_h__</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="impl_8h.html">utl/core/impl.h</a>&gt;</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="preprocessor">#include &lt;type_traits&gt;</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="preprocessor">#include &lt;utility&gt;</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceutl.html">utl</a> {</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;<span class="keyword">namespace </span>meta {</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;</div><div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="structutl_1_1meta_1_1nil__.html"> 43</a></span>&#160; <span class="keyword">struct </span><a class="code" href="structutl_1_1meta_1_1nil__.html">nil_</a> {</div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="structutl_1_1meta_1_1nil__.html#a497da8469a94140b0285ba5864d794c8"> 44</a></span>&#160; <span class="keyword">using</span> <a class="code" href="structutl_1_1meta_1_1nil__.html">type</a> = <a class="code" href="structutl_1_1meta_1_1nil__.html">nil_</a>;</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; };</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160;</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> Tp&gt;</div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="namespaceutl_1_1meta.html#aa5a37adba244ff4286f994111c4c02ea"> 49</a></span>&#160; <span class="keyword">using</span> <a class="code" href="namespaceutl_1_1meta.html#aa5a37adba244ff4286f994111c4c02ea">eval</a> = <span class="keyword">typename</span> Tp::type;</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160;</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> Tp, Tp v&gt;</div><div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="namespaceutl_1_1meta.html#ad60242f998d1d236b7b9744b7b09c8f2"> 58</a></span>&#160; <span class="keyword">using</span> <a class="code" href="namespaceutl_1_1meta.html#ad60242f998d1d236b7b9744b7b09c8f2">integral_</a> = std::integral_constant&lt;Tp, v&gt;;</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160;</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160;</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; <span class="keyword">template</span>&lt;<span class="keywordtype">bool</span> v&gt;</div><div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="namespaceutl_1_1meta.html#a0bec5828d2df0edfb4bc084773a438f6"> 66</a></span>&#160; <span class="keyword">using</span> <a class="code" href="namespaceutl_1_1meta.html#a0bec5828d2df0edfb4bc084773a438f6">bool_</a> = <a class="code" href="namespaceutl_1_1meta.html#ad60242f998d1d236b7b9744b7b09c8f2">integral_&lt;bool, v&gt;</a>;</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;</div><div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="namespaceutl_1_1meta.html#ae9a5a8fbe8202785f059935af219fb97"> 68</a></span>&#160; <span class="keyword">using</span> <a class="code" href="namespaceutl_1_1meta.html#ae9a5a8fbe8202785f059935af219fb97">true_</a> = <a class="code" href="namespaceutl_1_1meta.html#a0bec5828d2df0edfb4bc084773a438f6">bool_&lt;true&gt;</a>; </div><div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="namespaceutl_1_1meta.html#a55511dbaa0adb605ce22dcec11f8d22d"> 69</a></span>&#160; <span class="keyword">using</span> <a class="code" href="namespaceutl_1_1meta.html#a55511dbaa0adb605ce22dcec11f8d22d">false_</a> = <a class="code" href="namespaceutl_1_1meta.html#a0bec5828d2df0edfb4bc084773a438f6">bool_&lt;false&gt;</a>; </div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160;</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; <span class="keyword">template</span>&lt;<span class="keywordtype">int</span>8_t v&gt;</div><div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="namespaceutl_1_1meta.html#aa0ca1890dde0298c4380f94582cc2186"> 73</a></span>&#160; <span class="keyword">using</span> <a class="code" href="namespaceutl_1_1meta.html#aa0ca1890dde0298c4380f94582cc2186">int8_</a> = <a class="code" href="namespaceutl_1_1meta.html#ad60242f998d1d236b7b9744b7b09c8f2">integral_&lt;int8_t, v&gt;</a>;</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; <span class="keyword">template</span>&lt;u<span class="keywordtype">int</span>8_t v&gt;</div><div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="namespaceutl_1_1meta.html#aae9c77ad9349e98af6cdc41e9b0090f8"> 76</a></span>&#160; <span class="keyword">using</span> <a class="code" href="namespaceutl_1_1meta.html#aae9c77ad9349e98af6cdc41e9b0090f8">uint8_</a> = <a class="code" href="namespaceutl_1_1meta.html#ad60242f998d1d236b7b9744b7b09c8f2">integral_&lt;uint8_t, v&gt;</a>;</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160;</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; <span class="keyword">template</span>&lt;<span class="keywordtype">int</span>16_t v&gt;</div><div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="namespaceutl_1_1meta.html#a65bf025970a7ec0fd488c50a1b9c1038"> 80</a></span>&#160; <span class="keyword">using</span> <a class="code" href="namespaceutl_1_1meta.html#a65bf025970a7ec0fd488c50a1b9c1038">int16_</a> = <a class="code" href="namespaceutl_1_1meta.html#ad60242f998d1d236b7b9744b7b09c8f2">integral_&lt;int16_t, v&gt;</a>;</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; <span class="keyword">template</span>&lt;u<span class="keywordtype">int</span>16_t v&gt;</div><div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="namespaceutl_1_1meta.html#af1b0b8109e3e61032c24d148202b6966"> 83</a></span>&#160; <span class="keyword">using</span> <a class="code" href="namespaceutl_1_1meta.html#af1b0b8109e3e61032c24d148202b6966">uint16_</a> = <a class="code" href="namespaceutl_1_1meta.html#ad60242f998d1d236b7b9744b7b09c8f2">integral_&lt;uint16_t, v&gt;</a>;</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160;</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; <span class="keyword">template</span>&lt;<span class="keywordtype">int</span>32_t v&gt;</div><div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="namespaceutl_1_1meta.html#aa907f027fe3df2cecca2cf60930086fb"> 87</a></span>&#160; <span class="keyword">using</span> <a class="code" href="namespaceutl_1_1meta.html#aa907f027fe3df2cecca2cf60930086fb">int32_</a> = <a class="code" href="namespaceutl_1_1meta.html#ad60242f998d1d236b7b9744b7b09c8f2">integral_&lt;int32_t, v&gt;</a>;</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; <span class="keyword">template</span>&lt;u<span class="keywordtype">int</span>32_t v&gt;</div><div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="namespaceutl_1_1meta.html#aa8c7c38548db8df196b683ffdc109cd6"> 90</a></span>&#160; <span class="keyword">using</span> <a class="code" href="namespaceutl_1_1meta.html#aa8c7c38548db8df196b683ffdc109cd6">uint32_</a> = <a class="code" href="namespaceutl_1_1meta.html#ad60242f998d1d236b7b9744b7b09c8f2">integral_&lt;uint32_t, v&gt;</a>;</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160;</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; <span class="keyword">template</span>&lt;<span class="keywordtype">char</span> v&gt;</div><div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="namespaceutl_1_1meta.html#a0fe31eec9b085e52aa45587e6d887419"> 94</a></span>&#160; <span class="keyword">using</span> <a class="code" href="namespaceutl_1_1meta.html#a0fe31eec9b085e52aa45587e6d887419">char_</a> = <a class="code" href="namespaceutl_1_1meta.html#ad60242f998d1d236b7b9744b7b09c8f2">integral_&lt;char, v&gt;</a>;</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160;</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; <span class="keyword">template</span>&lt;<span class="keywordtype">int</span> v&gt;</div><div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4"> 98</a></span>&#160; <span class="keyword">using</span> <a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_</a> = <a class="code" href="namespaceutl_1_1meta.html#ad60242f998d1d236b7b9744b7b09c8f2">integral_&lt;int, v&gt;</a>;</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160;</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; <span class="keyword">template</span>&lt;<span class="keywordtype">long</span> v&gt;</div><div class="line"><a name="l00102"></a><span class="lineno"><a class="line" href="namespaceutl_1_1meta.html#a5d3ed337c64ea13ee70891d09b0caa3e"> 102</a></span>&#160; <span class="keyword">using</span> <a class="code" href="namespaceutl_1_1meta.html#a5d3ed337c64ea13ee70891d09b0caa3e">long_</a> = <a class="code" href="namespaceutl_1_1meta.html#ad60242f998d1d236b7b9744b7b09c8f2">integral_&lt;long, v&gt;</a>;</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160;</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; <span class="keyword">template</span>&lt;index_t v&gt;</div><div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="namespaceutl_1_1meta.html#a5b7d36b9e568b81f2df897d56dc23b64"> 106</a></span>&#160; <span class="keyword">using</span> <a class="code" href="namespaceutl_1_1meta.html#a5b7d36b9e568b81f2df897d56dc23b64">index_</a> = <a class="code" href="namespaceutl_1_1meta.html#ad60242f998d1d236b7b9744b7b09c8f2">integral_&lt;index_t, v&gt;</a>;</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160;</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; <span class="keyword">template</span>&lt;<span class="keywordtype">size_t</span> v&gt;</div><div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="namespaceutl_1_1meta.html#a249ac51f6613684164663bd22025fe9a"> 110</a></span>&#160; <span class="keyword">using</span> <a class="code" href="namespaceutl_1_1meta.html#a249ac51f6613684164663bd22025fe9a">size_</a> = <a class="code" href="namespaceutl_1_1meta.html#ad60242f998d1d236b7b9744b7b09c8f2">integral_&lt;size_t, v&gt;</a>;</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160;</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> Tp&gt;</div><div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="namespaceutl_1_1meta.html#a3fdae1894a962a69828ccccf73088cce"> 115</a></span>&#160; <span class="keyword">using</span> <a class="code" href="namespaceutl_1_1meta.html#a3fdae1894a962a69828ccccf73088cce">sizeof_</a> = <a class="code" href="namespaceutl_1_1meta.html#a249ac51f6613684164663bd22025fe9a">size_&lt;sizeof(Tp)&gt;</a>;</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160;</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> Tp&gt;</div><div class="line"><a name="l00120"></a><span class="lineno"><a class="line" href="namespaceutl_1_1meta.html#afacfb1fb855b9a9a0c8a2a625a2a9bd2"> 120</a></span>&#160; <span class="keyword">using</span> <a class="code" href="namespaceutl_1_1meta.html#afacfb1fb855b9a9a0c8a2a625a2a9bd2">alignof_</a> = <a class="code" href="namespaceutl_1_1meta.html#a249ac51f6613684164663bd22025fe9a">size_&lt;alignof(Tp)&gt;</a>;</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160;</div><div class="line"><a name="l00124"></a><span class="lineno"><a class="line" href="namespaceutl_1_1meta.html#af0c85cc6480a9e7a8e4fb7d8f936f01b"> 124</a></span>&#160; <span class="keyword">using</span> <a class="code" href="namespaceutl_1_1meta.html#af0c85cc6480a9e7a8e4fb7d8f936f01b">Npos</a> = <a class="code" href="namespaceutl_1_1meta.html#a249ac51f6613684164663bd22025fe9a">size_</a>&lt;<a class="code" href="namespaceutl.html#a676c0acd539dd04048dcc7b4d698577e">index_t</a>(-1)&gt;;</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160;</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; <span class="keyword">template</span>&lt; <span class="keyword">class </span>Tp, Tp... Ints &gt;</div><div class="line"><a name="l00129"></a><span class="lineno"><a class="line" href="namespaceutl_1_1meta.html#abc3ba8590a6cdd451f64d6c5dcd8ff99"> 129</a></span>&#160; <span class="keyword">using</span> <a class="code" href="namespaceutl_1_1meta.html#abc3ba8590a6cdd451f64d6c5dcd8ff99">integer_sequence</a> = <a class="code" href="namespaceutl_1_1meta.html#abc3ba8590a6cdd451f64d6c5dcd8ff99">std::integer_sequence</a>&lt;Tp, Ints...&gt;;</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160;</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; <span class="keyword">template</span>&lt;<span class="keyword">typename</span> Tp, Tp Num&gt;</div><div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="namespaceutl_1_1meta.html#a093a8cfdae571002c305273aa02ad6a2"> 132</a></span>&#160; <span class="keyword">using</span> <a class="code" href="namespaceutl_1_1meta.html#a093a8cfdae571002c305273aa02ad6a2">make_integer_sequence</a> = std::make_integer_sequence&lt;Tp, Num&gt;;</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160;</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; <span class="keyword">template</span>&lt;<a class="code" href="namespaceutl.html#a676c0acd539dd04048dcc7b4d698577e">index_t</a>... Idx&gt;</div><div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="namespaceutl_1_1meta.html#acb42e9c38b726174e64a36eea39239a5"> 136</a></span>&#160; <span class="keyword">using</span> <a class="code" href="namespaceutl_1_1meta.html#acb42e9c38b726174e64a36eea39239a5">index_sequence</a> = <a class="code" href="namespaceutl_1_1meta.html#abc3ba8590a6cdd451f64d6c5dcd8ff99">integer_sequence</a>&lt;<a class="code" href="namespaceutl.html#a676c0acd539dd04048dcc7b4d698577e">index_t</a>, Idx...&gt;;</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160;</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; <span class="keyword">template</span>&lt;index_t Num&gt;</div><div class="line"><a name="l00140"></a><span class="lineno"><a class="line" href="namespaceutl_1_1meta.html#aa7e48cd5c76ea88fc89ff4a66bc6f596"> 140</a></span>&#160; <span class="keyword">using</span> <a class="code" href="namespaceutl_1_1meta.html#aa7e48cd5c76ea88fc89ff4a66bc6f596">make_index_sequence</a> = <a class="code" href="namespaceutl_1_1meta.html#a093a8cfdae571002c305273aa02ad6a2">make_integer_sequence &lt;index_t, Num&gt;</a>;</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160;</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; <span class="keyword">template</span>&lt;<span class="keyword">typename</span>... Types&gt;</div><div class="line"><a name="l00144"></a><span class="lineno"><a class="line" href="namespaceutl_1_1meta.html#a7cdf7fbb62116925ccdecab03d3383d9"> 144</a></span>&#160; <span class="keyword">using</span> <a class="code" href="namespaceutl_1_1meta.html#a7cdf7fbb62116925ccdecab03d3383d9">index_sequence_for</a> = <a class="code" href="namespaceutl_1_1meta.html#aa7e48cd5c76ea88fc89ff4a66bc6f596">make_index_sequence</a>&lt;<span class="keyword">sizeof</span>...(Types)&gt;;</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160;</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160;}}</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160;</div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160;</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* __utl_meta_integralconstant_h__ */</span><span class="preprocessor"></span></div><div class="ttc" id="namespaceutl_1_1meta_html_aa7e48cd5c76ea88fc89ff4a66bc6f596"><div class="ttname"><a href="namespaceutl_1_1meta.html#aa7e48cd5c76ea88fc89ff4a66bc6f596">utl::meta::make_index_sequence</a></div><div class="ttdeci">make_integer_sequence&lt; index_t, Num &gt; make_index_sequence</div><div class="ttdoc">Alias template make_index_sequence. </div><div class="ttdef"><b>Definition:</b> <a href="integral_8h_source.html#l00140">integral.h:140</a></div></div>
  92. <div class="ttc" id="namespaceutl_1_1meta_html_aae9c77ad9349e98af6cdc41e9b0090f8"><div class="ttname"><a href="namespaceutl_1_1meta.html#aae9c77ad9349e98af6cdc41e9b0090f8">utl::meta::uint8_</a></div><div class="ttdeci">integral_&lt; uint8_t, v &gt; uint8_</div><div class="ttdoc">uint8_ type: integral constant wrapper for uint8_t </div><div class="ttdef"><b>Definition:</b> <a href="integral_8h_source.html#l00076">integral.h:76</a></div></div>
  93. <div class="ttc" id="namespaceutl_1_1meta_html_aa0ca1890dde0298c4380f94582cc2186"><div class="ttname"><a href="namespaceutl_1_1meta.html#aa0ca1890dde0298c4380f94582cc2186">utl::meta::int8_</a></div><div class="ttdeci">integral_&lt; int8_t, v &gt; int8_</div><div class="ttdoc">int8_ type: integral constant wrapper for int8_t </div><div class="ttdef"><b>Definition:</b> <a href="integral_8h_source.html#l00073">integral.h:73</a></div></div>
  94. <div class="ttc" id="namespaceutl_1_1meta_html_ae9a5a8fbe8202785f059935af219fb97"><div class="ttname"><a href="namespaceutl_1_1meta.html#ae9a5a8fbe8202785f059935af219fb97">utl::meta::true_</a></div><div class="ttdeci">bool_&lt; true &gt; true_</div><div class="ttdoc">The type used as a compile-time boolean with true value. </div><div class="ttdef"><b>Definition:</b> <a href="integral_8h_source.html#l00068">integral.h:68</a></div></div>
  95. <div class="ttc" id="namespaceutl_1_1meta_html_a249ac51f6613684164663bd22025fe9a"><div class="ttname"><a href="namespaceutl_1_1meta.html#a249ac51f6613684164663bd22025fe9a">utl::meta::size_</a></div><div class="ttdeci">integral_&lt; size_t, v &gt; size_</div><div class="ttdoc">size_ type: integral constant wrapper for size_t a.k.a std::size_t </div><div class="ttdef"><b>Definition:</b> <a href="integral_8h_source.html#l00110">integral.h:110</a></div></div>
  96. <div class="ttc" id="namespaceutl_1_1meta_html_a5d3ed337c64ea13ee70891d09b0caa3e"><div class="ttname"><a href="namespaceutl_1_1meta.html#a5d3ed337c64ea13ee70891d09b0caa3e">utl::meta::long_</a></div><div class="ttdeci">integral_&lt; long, v &gt; long_</div><div class="ttdoc">long_ type: integral constant wrapper for long </div><div class="ttdef"><b>Definition:</b> <a href="integral_8h_source.html#l00102">integral.h:102</a></div></div>
  97. <div class="ttc" id="structutl_1_1meta_1_1nil___html"><div class="ttname"><a href="structutl_1_1meta_1_1nil__.html">utl::meta::nil_</a></div><div class="ttdef"><b>Definition:</b> <a href="integral_8h_source.html#l00043">integral.h:43</a></div></div>
  98. <div class="ttc" id="namespaceutl_1_1meta_html_ad60242f998d1d236b7b9744b7b09c8f2"><div class="ttname"><a href="namespaceutl_1_1meta.html#ad60242f998d1d236b7b9744b7b09c8f2">utl::meta::integral_</a></div><div class="ttdeci">std::integral_constant&lt; Tp, v &gt; integral_</div><div class="ttdef"><b>Definition:</b> <a href="integral_8h_source.html#l00058">integral.h:58</a></div></div>
  99. <div class="ttc" id="namespaceutl_1_1meta_html_af0c85cc6480a9e7a8e4fb7d8f936f01b"><div class="ttname"><a href="namespaceutl_1_1meta.html#af0c85cc6480a9e7a8e4fb7d8f936f01b">utl::meta::Npos</a></div><div class="ttdeci">size_&lt; index_t(-1)&gt; Npos</div><div class="ttdoc">The last position we can express for indexing. </div><div class="ttdef"><b>Definition:</b> <a href="integral_8h_source.html#l00124">integral.h:124</a></div></div>
  100. <div class="ttc" id="namespaceutl_1_1meta_html_a093a8cfdae571002c305273aa02ad6a2"><div class="ttname"><a href="namespaceutl_1_1meta.html#a093a8cfdae571002c305273aa02ad6a2">utl::meta::make_integer_sequence</a></div><div class="ttdeci">std::make_integer_sequence&lt; Tp, Num &gt; make_integer_sequence</div><div class="ttdef"><b>Definition:</b> <a href="integral_8h_source.html#l00132">integral.h:132</a></div></div>
  101. <div class="ttc" id="namespaceutl_1_1meta_html_a35b962b97f8277de66c1c8c02796eed4"><div class="ttname"><a href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">utl::meta::int_</a></div><div class="ttdeci">integral_&lt; int, v &gt; int_</div><div class="ttdoc">int_ type: integral constant wrapper for int </div><div class="ttdef"><b>Definition:</b> <a href="integral_8h_source.html#l00098">integral.h:98</a></div></div>
  102. <div class="ttc" id="namespaceutl_1_1meta_html_a7cdf7fbb62116925ccdecab03d3383d9"><div class="ttname"><a href="namespaceutl_1_1meta.html#a7cdf7fbb62116925ccdecab03d3383d9">utl::meta::index_sequence_for</a></div><div class="ttdeci">make_index_sequence&lt; sizeof...(Types)&gt; index_sequence_for</div><div class="ttdoc">Alias template index_sequence_for. </div><div class="ttdef"><b>Definition:</b> <a href="integral_8h_source.html#l00144">integral.h:144</a></div></div>
  103. <div class="ttc" id="namespaceutl_1_1meta_html_a55511dbaa0adb605ce22dcec11f8d22d"><div class="ttname"><a href="namespaceutl_1_1meta.html#a55511dbaa0adb605ce22dcec11f8d22d">utl::meta::false_</a></div><div class="ttdeci">bool_&lt; false &gt; false_</div><div class="ttdoc">The type used as a compile-time boolean with false value. </div><div class="ttdef"><b>Definition:</b> <a href="integral_8h_source.html#l00069">integral.h:69</a></div></div>
  104. <div class="ttc" id="namespaceutl_1_1meta_html_aa5a37adba244ff4286f994111c4c02ea"><div class="ttname"><a href="namespaceutl_1_1meta.html#aa5a37adba244ff4286f994111c4c02ea">utl::meta::eval</a></div><div class="ttdeci">typename Tp::type eval</div><div class="ttdoc">Type alias for Tp::type. Used to evaluate/extract return type of metafunctions. </div><div class="ttdef"><b>Definition:</b> <a href="integral_8h_source.html#l00049">integral.h:49</a></div></div>
  105. <div class="ttc" id="namespaceutl_1_1meta_html_a0fe31eec9b085e52aa45587e6d887419"><div class="ttname"><a href="namespaceutl_1_1meta.html#a0fe31eec9b085e52aa45587e6d887419">utl::meta::char_</a></div><div class="ttdeci">integral_&lt; char, v &gt; char_</div><div class="ttdoc">char_ type: integral constant wrapper for char </div><div class="ttdef"><b>Definition:</b> <a href="integral_8h_source.html#l00094">integral.h:94</a></div></div>
  106. <div class="ttc" id="namespaceutl_1_1meta_html_af1b0b8109e3e61032c24d148202b6966"><div class="ttname"><a href="namespaceutl_1_1meta.html#af1b0b8109e3e61032c24d148202b6966">utl::meta::uint16_</a></div><div class="ttdeci">integral_&lt; uint16_t, v &gt; uint16_</div><div class="ttdoc">uint16_ type: integral constant wrapper for uint16_t </div><div class="ttdef"><b>Definition:</b> <a href="integral_8h_source.html#l00083">integral.h:83</a></div></div>
  107. <div class="ttc" id="namespaceutl_html"><div class="ttname"><a href="namespaceutl.html">utl</a></div><div class="ttdoc">STL&amp;#39;s core language concepts. </div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00030">_1wire.h:30</a></div></div>
  108. <div class="ttc" id="namespaceutl_1_1meta_html_acb42e9c38b726174e64a36eea39239a5"><div class="ttname"><a href="namespaceutl_1_1meta.html#acb42e9c38b726174e64a36eea39239a5">utl::meta::index_sequence</a></div><div class="ttdeci">integer_sequence&lt; index_t, Idx... &gt; index_sequence</div><div class="ttdoc">Alias template index_sequence. </div><div class="ttdef"><b>Definition:</b> <a href="integral_8h_source.html#l00136">integral.h:136</a></div></div>
  109. <div class="ttc" id="namespaceutl_1_1meta_html_a5b7d36b9e568b81f2df897d56dc23b64"><div class="ttname"><a href="namespaceutl_1_1meta.html#a5b7d36b9e568b81f2df897d56dc23b64">utl::meta::index_</a></div><div class="ttdeci">integral_&lt; index_t, v &gt; index_</div><div class="ttdoc">index_ type: integral constant wrapper for index_t a.k.a std::size_t </div><div class="ttdef"><b>Definition:</b> <a href="integral_8h_source.html#l00106">integral.h:106</a></div></div>
  110. <div class="ttc" id="namespaceutl_1_1meta_html_afacfb1fb855b9a9a0c8a2a625a2a9bd2"><div class="ttname"><a href="namespaceutl_1_1meta.html#afacfb1fb855b9a9a0c8a2a625a2a9bd2">utl::meta::alignof_</a></div><div class="ttdeci">size_&lt; alignof(Tp)&gt; alignof_</div><div class="ttdef"><b>Definition:</b> <a href="integral_8h_source.html#l00120">integral.h:120</a></div></div>
  111. <div class="ttc" id="namespaceutl_1_1meta_html_a0bec5828d2df0edfb4bc084773a438f6"><div class="ttname"><a href="namespaceutl_1_1meta.html#a0bec5828d2df0edfb4bc084773a438f6">utl::meta::bool_</a></div><div class="ttdeci">integral_&lt; bool, v &gt; bool_</div><div class="ttdoc">bool_ type: integral constant wrapper for bool </div><div class="ttdef"><b>Definition:</b> <a href="integral_8h_source.html#l00066">integral.h:66</a></div></div>
  112. <div class="ttc" id="namespaceutl_html_a676c0acd539dd04048dcc7b4d698577e"><div class="ttname"><a href="namespaceutl.html#a676c0acd539dd04048dcc7b4d698577e">utl::index_t</a></div><div class="ttdeci">size_t index_t</div><div class="ttdoc">index_t and size_t mend to be interchangeable </div><div class="ttdef"><b>Definition:</b> <a href="types_8h_source.html#l00038">types.h:38</a></div></div>
  113. <div class="ttc" id="namespaceutl_1_1meta_html_aa907f027fe3df2cecca2cf60930086fb"><div class="ttname"><a href="namespaceutl_1_1meta.html#aa907f027fe3df2cecca2cf60930086fb">utl::meta::int32_</a></div><div class="ttdeci">integral_&lt; int32_t, v &gt; int32_</div><div class="ttdoc">int32_ type: integral constant wrapper for int32_t </div><div class="ttdef"><b>Definition:</b> <a href="integral_8h_source.html#l00087">integral.h:87</a></div></div>
  114. <div class="ttc" id="namespaceutl_1_1meta_html_a3fdae1894a962a69828ccccf73088cce"><div class="ttname"><a href="namespaceutl_1_1meta.html#a3fdae1894a962a69828ccccf73088cce">utl::meta::sizeof_</a></div><div class="ttdeci">size_&lt; sizeof(Tp)&gt; sizeof_</div><div class="ttdef"><b>Definition:</b> <a href="integral_8h_source.html#l00115">integral.h:115</a></div></div>
  115. <div class="ttc" id="namespaceutl_1_1meta_html_abc3ba8590a6cdd451f64d6c5dcd8ff99"><div class="ttname"><a href="namespaceutl_1_1meta.html#abc3ba8590a6cdd451f64d6c5dcd8ff99">utl::meta::integer_sequence</a></div><div class="ttdeci">std::integer_sequence&lt; Tp, Ints... &gt; integer_sequence</div><div class="ttdef"><b>Definition:</b> <a href="integral_8h_source.html#l00129">integral.h:129</a></div></div>
  116. <div class="ttc" id="namespaceutl_1_1meta_html_aa8c7c38548db8df196b683ffdc109cd6"><div class="ttname"><a href="namespaceutl_1_1meta.html#aa8c7c38548db8df196b683ffdc109cd6">utl::meta::uint32_</a></div><div class="ttdeci">integral_&lt; uint32_t, v &gt; uint32_</div><div class="ttdoc">uint32_ type: integral constant wrapper for uint32_t </div><div class="ttdef"><b>Definition:</b> <a href="integral_8h_source.html#l00090">integral.h:90</a></div></div>
  117. <div class="ttc" id="namespaceutl_1_1meta_html_a65bf025970a7ec0fd488c50a1b9c1038"><div class="ttname"><a href="namespaceutl_1_1meta.html#a65bf025970a7ec0fd488c50a1b9c1038">utl::meta::int16_</a></div><div class="ttdeci">integral_&lt; int16_t, v &gt; int16_</div><div class="ttdoc">int16_ type: integral constant wrapper for int16_t </div><div class="ttdef"><b>Definition:</b> <a href="integral_8h_source.html#l00080">integral.h:80</a></div></div>
  118. <div class="ttc" id="impl_8h_html"><div class="ttname"><a href="impl_8h.html">impl.h</a></div><div class="ttdoc">Implementation detail main forward header. </div></div>
  119. </div><!-- fragment --></div><!-- contents -->
  120. </div><!-- doc-content -->
  121. <!-- start footer part -->
  122. <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  123. <ul>
  124. <li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_82754f54d9380477ef02477185c1f103.html">utl</a></li><li class="navelem"><a class="el" href="dir_c6a55aeb35dd92d90cdd3b5869981960.html">meta</a></li><li class="navelem"><a class="el" href="integral_8h.html">integral.h</a></li>
  125. <li class="footer">Generated by
  126. <a href="http://www.doxygen.org/index.html">
  127. <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
  128. </ul>
  129. </div>
  130. </body>
  131. </html>