Micro template library A library for building device drivers
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

166 lines
96 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: test/tests/TmetaBasic.cpp 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('_tmeta_basic_8cpp_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">TmetaBasic.cpp</div> </div>
  89. </div><!--header-->
  90. <div class="contents">
  91. <a href="_tmeta_basic_8cpp.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">#include &lt;<a class="code" href="meta_8h.html">utl/meta/meta.h</a>&gt;</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="gtest_8h.html">gtest/gtest.h</a>&gt;</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="preprocessor">#include &lt;type_traits&gt;</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;</div><div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="namespace_tmeta_basic.html"> 24</a></span>&#160;<span class="keyword">namespace </span><a class="code" href="namespace_tmeta_basic.html">TmetaBasic</a> {</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160; <span class="keyword">using namespace </span><a class="code" href="namespaceutl.html">utl</a>;</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160; <span class="keyword">using namespace </span>meta;</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160; <span class="comment">/*</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="comment"> * Types to behave like Fixtures</span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160; <span class="comment">// Test type_of fixture</span></div><div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="struct_tmeta_basic_1_1_identity.html"> 32</a></span>&#160; <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; <span class="keyword">struct </span><a class="code" href="struct_tmeta_basic_1_1_identity.html">Identity</a> {</div><div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="struct_tmeta_basic_1_1_identity.html#a9ab7e06acd9e4e822d8b925fd7749b5e"> 33</a></span>&#160; <span class="keyword">using</span> <a class="code" href="struct_tmeta_basic_1_1_identity.html#a9ab7e06acd9e4e822d8b925fd7749b5e">type</a> = T;</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; };</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; <span class="comment">/*</span></div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;<span class="comment"> * Test integral constant</span></div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="namespace_tmeta_basic.html#adbcfd80fbcc5a0fa1a132ea56c18e7ec"> 39</a></span>&#160; <a class="code" href="namespace_tmeta_basic.html#adbcfd80fbcc5a0fa1a132ea56c18e7ec">TEST</a>(<a class="code" href="namespace_tmeta_basic.html">TmetaBasic</a>, IntegrealType) {</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a>(<span class="keyword">true</span>, (std::is_same&lt;<span class="keywordtype">int</span>, <a class="code" href="namespaceutl_1_1meta.html#aa5a37adba244ff4286f994111c4c02ea">eval</a>&lt;<a class="code" href="struct_tmeta_basic_1_1_identity.html">Identity&lt;int&gt;</a>&gt;&gt;::value));</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a>(<span class="keyword">true</span>, (std::is_same&lt;<a class="code" href="structutl_1_1meta_1_1nil__.html">nil_</a>, <a class="code" href="namespaceutl_1_1meta.html#aa5a37adba244ff4286f994111c4c02ea">eval&lt;nil_&gt;</a>&gt;::value));</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a>(<span class="keyword">true</span>, (std::is_same&lt;<a class="code" href="structutl_1_1meta_1_1nil__.html">nil_</a>, <a class="code" href="namespaceutl_1_1meta.html#aa5a37adba244ff4286f994111c4c02ea">eval</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#aa5a37adba244ff4286f994111c4c02ea">eval&lt;nil_&gt;</a>&gt;&gt;::value));</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a>(<span class="keyword">true</span>, (std::is_same&lt;<a class="code" href="structutl_1_1meta_1_1nil__.html">nil_</a>, <a class="code" href="namespaceutl_1_1meta.html#aa5a37adba244ff4286f994111c4c02ea">eval</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#aa5a37adba244ff4286f994111c4c02ea">eval</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#aa5a37adba244ff4286f994111c4c02ea">eval&lt;nil_&gt;</a>&gt;&gt;&gt;::value));</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; }</div><div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="namespace_tmeta_basic.html#a9366a9541a3c137f06a56bb0de5dea26"> 45</a></span>&#160; <a class="code" href="namespace_tmeta_basic.html#adbcfd80fbcc5a0fa1a132ea56c18e7ec">TEST</a>(<a class="code" href="namespace_tmeta_basic.html">TmetaBasic</a>, IntegrealConstant) {</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a>(<span class="keyword">true</span>, (std::is_same&lt;<span class="keywordtype">int</span>, <a class="code" href="namespaceutl_1_1meta.html#ad60242f998d1d236b7b9744b7b09c8f2">integral_&lt;int, 42&gt;::value_type</a>&gt;::value));</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a>(<span class="keyword">true</span>, (std::is_same&lt;<span class="keywordtype">int</span>, <a class="code" href="namespaceutl_1_1meta.html#ad60242f998d1d236b7b9744b7b09c8f2">integral_&lt;int, 42&gt;::type::value_type</a>&gt;::value));</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a>(42, (<a class="code" href="namespaceutl_1_1meta.html#ad60242f998d1d236b7b9744b7b09c8f2">integral_&lt;int, 0&gt;::value_type</a>(42)));</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a>(42, (<a class="code" href="namespaceutl_1_1meta.html#ad60242f998d1d236b7b9744b7b09c8f2">integral_&lt;int, 42&gt;</a>()));</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; }</div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="namespace_tmeta_basic.html#a76a07a924d058a3e5f60e1b40417348a"> 51</a></span>&#160; <a class="code" href="namespace_tmeta_basic.html#adbcfd80fbcc5a0fa1a132ea56c18e7ec">TEST</a>(<a class="code" href="namespace_tmeta_basic.html">TmetaBasic</a>, BasicTypes) {</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a>(<span class="keyword">true</span>, (std::is_same&lt;<span class="keywordtype">bool</span>, <a class="code" href="namespaceutl_1_1meta.html#a0bec5828d2df0edfb4bc084773a438f6">bool_&lt;false&gt;::value_type</a>&gt;::value));</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a>(<span class="keyword">true</span>, <a class="code" href="namespaceutl_1_1meta.html#a0bec5828d2df0edfb4bc084773a438f6">bool_&lt;true&gt;::value</a>);</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a>(<span class="keyword">true</span>, (std::is_same&lt;bool, false_::value_type&gt;::value));</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a>(<span class="keyword">false</span>, false_::value);</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a>(<span class="keyword">true</span>, (std::is_same&lt;bool, true_::value_type&gt;::value));</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a>(<span class="keyword">true</span>, true_::value);</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160;</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a>(<span class="keyword">true</span>, (std::is_same&lt;int8_t, <a class="code" href="namespaceutl_1_1meta.html#aa0ca1890dde0298c4380f94582cc2186">int8_&lt;0&gt;::value_type</a>&gt;::value));</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a>(42, <a class="code" href="namespaceutl_1_1meta.html#aa0ca1890dde0298c4380f94582cc2186">int8_&lt;42&gt;::value</a>);</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a>(<span class="keyword">true</span>, (std::is_same&lt;uint8_t, <a class="code" href="namespaceutl_1_1meta.html#aae9c77ad9349e98af6cdc41e9b0090f8">uint8_&lt;0&gt;::value_type</a>&gt;::value));</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a>(42u, <a class="code" href="namespaceutl_1_1meta.html#aae9c77ad9349e98af6cdc41e9b0090f8">uint8_&lt;42u&gt;::value</a>);</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a>(<span class="keyword">true</span>, (std::is_same&lt;int16_t, <a class="code" href="namespaceutl_1_1meta.html#a65bf025970a7ec0fd488c50a1b9c1038">int16_&lt;0&gt;::value_type</a>&gt;::value));</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a>(42, <a class="code" href="namespaceutl_1_1meta.html#a65bf025970a7ec0fd488c50a1b9c1038">int16_&lt;42&gt;::value</a>);</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a>(<span class="keyword">true</span>, (std::is_same&lt;uint16_t, <a class="code" href="namespaceutl_1_1meta.html#af1b0b8109e3e61032c24d148202b6966">uint16_&lt;0&gt;::value_type</a>&gt;::value));</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a>(42u, <a class="code" href="namespaceutl_1_1meta.html#af1b0b8109e3e61032c24d148202b6966">uint16_&lt;42u&gt;::value</a>);</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a>(<span class="keyword">true</span>, (std::is_same&lt;int32_t, <a class="code" href="namespaceutl_1_1meta.html#aa907f027fe3df2cecca2cf60930086fb">int32_&lt;0&gt;::value_type</a>&gt;::value));</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a>(42, <a class="code" href="namespaceutl_1_1meta.html#aa907f027fe3df2cecca2cf60930086fb">int32_&lt;42&gt;::value</a>);</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a>(<span class="keyword">true</span>, (std::is_same&lt;uint32_t, <a class="code" href="namespaceutl_1_1meta.html#aa8c7c38548db8df196b683ffdc109cd6">uint32_&lt;0&gt;::value_type</a>&gt;::value));</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a>(42u, <a class="code" href="namespaceutl_1_1meta.html#aa8c7c38548db8df196b683ffdc109cd6">uint32_&lt;42u&gt;::value</a>);</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160;</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a>(<span class="keyword">true</span>, (std::is_same&lt;<span class="keywordtype">char</span>, <a class="code" href="namespaceutl_1_1meta.html#a0fe31eec9b085e52aa45587e6d887419">char_&lt;0&gt;::value_type</a>&gt;::value));</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a>(42, <a class="code" href="namespaceutl_1_1meta.html#a0fe31eec9b085e52aa45587e6d887419">char_&lt;42&gt;::value</a>);</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a>(<span class="keyword">true</span>, (std::is_same&lt;<span class="keywordtype">int</span>, <a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;0&gt;::value_type</a>&gt;::value));</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a>(42, <a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;42&gt;::value</a>);</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a>(<span class="keyword">true</span>, (std::is_same&lt;<span class="keywordtype">long</span>, <a class="code" href="namespaceutl_1_1meta.html#a5d3ed337c64ea13ee70891d09b0caa3e">long_&lt;0&gt;::value_type</a>&gt;::value));</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a>(42, <a class="code" href="namespaceutl_1_1meta.html#a5d3ed337c64ea13ee70891d09b0caa3e">long_&lt;42&gt;::value</a>);</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160;</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a>(<span class="keyword">true</span>, (std::is_same&lt;<a class="code" href="namespaceutl.html#a676c0acd539dd04048dcc7b4d698577e">index_t</a>, <a class="code" href="namespaceutl_1_1meta.html#a5b7d36b9e568b81f2df897d56dc23b64">index_&lt;0&gt;::value_type</a>&gt;::value));</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a>(42U, <a class="code" href="namespaceutl_1_1meta.html#a5b7d36b9e568b81f2df897d56dc23b64">index_&lt;42U&gt;::value</a>);</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a>(<span class="keyword">true</span>, (std::is_same&lt;<span class="keywordtype">size_t</span>, <a class="code" href="namespaceutl_1_1meta.html#a249ac51f6613684164663bd22025fe9a">size_&lt;0&gt;::value_type</a>&gt;::value));</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a>(42U, <a class="code" href="namespaceutl_1_1meta.html#a249ac51f6613684164663bd22025fe9a">size_&lt;42U&gt;::value</a>);</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160;</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a>(<span class="keyword">sizeof</span>(<span class="keywordtype">int</span>), <a class="code" href="namespaceutl_1_1meta.html#a3fdae1894a962a69828ccccf73088cce">sizeof_&lt;int&gt;::value</a>);</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a>(<span class="keyword">alignof</span>(<span class="keywordtype">int</span>), <a class="code" href="namespaceutl_1_1meta.html#afacfb1fb855b9a9a0c8a2a625a2a9bd2">alignof_&lt;int&gt;::value</a>);</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a>(static_cast&lt;index_t&gt;(-1), Npos::value);</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; }</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160;</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; <span class="comment">/*</span></div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160;<span class="comment"> * Test integral constant selection operations</span></div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="namespace_tmeta_basic.html#aa66e8f02bed5fa0b5a84c70f80c29b98"> 92</a></span>&#160; <a class="code" href="namespace_tmeta_basic.html#adbcfd80fbcc5a0fa1a132ea56c18e7ec">TEST</a>(<a class="code" href="namespace_tmeta_basic.html">TmetaBasic</a>, Selection) {</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; <span class="keyword">struct </span>Foo {};</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; <span class="keyword">struct </span>Bar {};</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160;</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same&lt;<a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;42&gt;</a>, <a class="code" href="group__type.html#gaa3812817ce749832da73fdf5d2a85380">if_c</a>&lt;<span class="keyword">true</span>, <a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;42&gt;</a>, <a class="code" href="namespaceutl_1_1meta.html#a55511dbaa0adb605ce22dcec11f8d22d">false_</a>&gt;&gt;()));</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same&lt;Foo, <a class="code" href="group__type.html#gaa3812817ce749832da73fdf5d2a85380">if_c</a>&lt;<span class="keyword">false</span>, <a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;42&gt;</a>, Foo&gt;&gt;()));</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same&lt;Foo, <a class="code" href="group__type.html#gaa3812817ce749832da73fdf5d2a85380">if_c&lt;42, Foo, Bar&gt;</a>&gt;()));</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160;</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same&lt;<a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;42&gt;</a>, <a class="code" href="group__type.html#ga39cc4e727a8faa5ea176f543e62c05c0">if_</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#ae9a5a8fbe8202785f059935af219fb97">true_</a>, <a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;42&gt;</a>, Bar&gt;&gt;()));</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same&lt;Bar, <a class="code" href="group__type.html#ga39cc4e727a8faa5ea176f543e62c05c0">if_</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#a55511dbaa0adb605ce22dcec11f8d22d">false_</a>, <a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;42&gt;</a>, Bar&gt;&gt;()));</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same&lt;<a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;42&gt;</a>, <a class="code" href="group__type.html#ga39cc4e727a8faa5ea176f543e62c05c0">if_</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;1&gt;</a>, <a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;42&gt;</a>, Bar&gt;&gt;()));</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same&lt;Foo, <a class="code" href="group__type.html#ga39cc4e727a8faa5ea176f543e62c05c0">if_</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;0&gt;</a>, <a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;42&gt;</a>, Foo&gt;&gt;()));</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160;</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same&lt;<a class="code" href="namespaceutl_1_1meta.html#ae9a5a8fbe8202785f059935af219fb97">true_</a>, <a class="code" href="group__type.html#gaf7089523d21cd405c76985643f31092a">first_of&lt;true_, false_&gt;</a>&gt;()));</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">false</span>,(std::is_same&lt;<a class="code" href="namespaceutl_1_1meta.html#ae9a5a8fbe8202785f059935af219fb97">true_</a>, <a class="code" href="group__type.html#gaf7089523d21cd405c76985643f31092a">first_of&lt;false_, true_&gt;</a>&gt;()));</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">false</span>,(std::is_same&lt;<a class="code" href="namespaceutl_1_1meta.html#ae9a5a8fbe8202785f059935af219fb97">true_</a>, <a class="code" href="group__type.html#ga422dd1b0895f0074ad9932d68d9edbc5">second_of&lt;true_, false_&gt;</a>&gt;()));</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same&lt;<a class="code" href="namespaceutl_1_1meta.html#ae9a5a8fbe8202785f059935af219fb97">true_</a>, <a class="code" href="group__type.html#ga422dd1b0895f0074ad9932d68d9edbc5">second_of&lt;false_, true_&gt;</a>&gt;()));</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160;</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; }</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160;</div><div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="namespace_tmeta_basic.html#a8ee52197913571c983d610af12a1a664"> 112</a></span>&#160; <a class="code" href="namespace_tmeta_basic.html#adbcfd80fbcc5a0fa1a132ea56c18e7ec">TEST</a>(<a class="code" href="namespace_tmeta_basic.html">TmetaBasic</a>, LogicalOperations) {</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; <span class="keyword">struct </span>Foo {};</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; <span class="keyword">struct </span>Bar {};</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160;</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same&lt;<a class="code" href="namespaceutl_1_1meta.html#ae9a5a8fbe8202785f059935af219fb97">true_</a>, <a class="code" href="group__integral.html#ga7de987520bd0973f03ff8bab3152361a">not_c&lt;false&gt;</a>&gt;::value));</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same&lt;<a class="code" href="namespaceutl_1_1meta.html#a55511dbaa0adb605ce22dcec11f8d22d">false_</a>, <a class="code" href="group__integral.html#ga7de987520bd0973f03ff8bab3152361a">not_c&lt;true&gt;</a>&gt;::value));</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same&lt;<a class="code" href="namespaceutl_1_1meta.html#a55511dbaa0adb605ce22dcec11f8d22d">false_</a>, <a class="code" href="group__integral.html#ga7de987520bd0973f03ff8bab3152361a">not_c&lt;1&gt;</a>&gt;::value));</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same&lt;<a class="code" href="namespaceutl_1_1meta.html#ae9a5a8fbe8202785f059935af219fb97">true_</a>, <a class="code" href="group__integral.html#ga7de987520bd0973f03ff8bab3152361a">not_c&lt;0&gt;</a>&gt;::value));</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160;</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same&lt;<a class="code" href="namespaceutl_1_1meta.html#ae9a5a8fbe8202785f059935af219fb97">true_</a>, <a class="code" href="group__integral.html#ga16df145331d3c62e624385c5949d90c4">not_&lt;false_&gt;</a>&gt;()));</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same&lt;<a class="code" href="namespaceutl_1_1meta.html#a55511dbaa0adb605ce22dcec11f8d22d">false_</a>, <a class="code" href="group__integral.html#ga16df145331d3c62e624385c5949d90c4">not_&lt;true_&gt;</a>&gt;()));</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same&lt;<a class="code" href="namespaceutl_1_1meta.html#ae9a5a8fbe8202785f059935af219fb97">true_</a>, <a class="code" href="group__integral.html#ga16df145331d3c62e624385c5949d90c4">not_</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;0&gt;</a>&gt;&gt;()));</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same&lt;<a class="code" href="namespaceutl_1_1meta.html#a55511dbaa0adb605ce22dcec11f8d22d">false_</a>, <a class="code" href="group__integral.html#ga16df145331d3c62e624385c5949d90c4">not_</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;1&gt;</a>&gt;&gt;()));</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160;</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same&lt;<a class="code" href="namespaceutl_1_1meta.html#a55511dbaa0adb605ce22dcec11f8d22d">false_</a>, <a class="code" href="group__integral.html#gac43f400cc93d54f5f79892e618069d9b">or_</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#a55511dbaa0adb605ce22dcec11f8d22d">false_</a>, <a class="code" href="namespaceutl_1_1meta.html#a55511dbaa0adb605ce22dcec11f8d22d">false_</a>, <a class="code" href="group__integral.html#ga7de987520bd0973f03ff8bab3152361a">not_c&lt;true&gt;</a>, <a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;0&gt;</a>, <a class="code" href="group__integral.html#ga16df145331d3c62e624385c5949d90c4">not_&lt;true_&gt;</a>&gt;&gt;()));</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same&lt;<a class="code" href="namespaceutl_1_1meta.html#a55511dbaa0adb605ce22dcec11f8d22d">false_</a>, <a class="code" href="group__integral.html#gac43f400cc93d54f5f79892e618069d9b">or_&lt;&gt;</a>&gt;()));</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same&lt;<a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;1&gt;</a>,<a class="code" href="group__integral.html#gac43f400cc93d54f5f79892e618069d9b">or_</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;1&gt;</a>&gt;&gt;()));</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same&lt;<a class="code" href="namespaceutl_1_1meta.html#ae9a5a8fbe8202785f059935af219fb97">true_</a>, <a class="code" href="group__integral.html#gac43f400cc93d54f5f79892e618069d9b">or_&lt;true_&gt;</a>&gt;()));</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same&lt;<a class="code" href="namespaceutl_1_1meta.html#ae9a5a8fbe8202785f059935af219fb97">true_</a>, <a class="code" href="group__integral.html#gac43f400cc93d54f5f79892e618069d9b">or_&lt;false_, true_&gt;</a>&gt;()));</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same&lt;<a class="code" href="namespaceutl_1_1meta.html#ae9a5a8fbe8202785f059935af219fb97">true_</a>, <a class="code" href="group__integral.html#gac43f400cc93d54f5f79892e618069d9b">or_&lt;false_, false_, true_&gt;</a>&gt;()));</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same&lt;<a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;1&gt;</a>,<a class="code" href="group__integral.html#gac43f400cc93d54f5f79892e618069d9b">or_</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;0&gt;</a>, <a class="code" href="namespaceutl_1_1meta.html#a55511dbaa0adb605ce22dcec11f8d22d">false_</a>, <a class="code" href="group__integral.html#ga16df145331d3c62e624385c5949d90c4">not_&lt;true_&gt;</a>, <a class="code" href="group__integral.html#ga7de987520bd0973f03ff8bab3152361a">not_c&lt;true&gt;</a>, <a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;1&gt;</a>&gt;&gt;()));</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160;</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same&lt;<a class="code" href="namespaceutl_1_1meta.html#ae9a5a8fbe8202785f059935af219fb97">true_</a>, <a class="code" href="group__integral.html#ga8e82f4758321e0e0b3705607f7d8e068">and_</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#ae9a5a8fbe8202785f059935af219fb97">true_</a>, <a class="code" href="namespaceutl_1_1meta.html#ae9a5a8fbe8202785f059935af219fb97">true_</a>, <a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;1&gt;</a>, <a class="code" href="group__integral.html#ga16df145331d3c62e624385c5949d90c4">not_&lt;false_&gt;</a>, <a class="code" href="group__integral.html#ga7de987520bd0973f03ff8bab3152361a">not_c&lt;false&gt;</a>&gt;&gt;()));</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same&lt;<a class="code" href="namespaceutl_1_1meta.html#ae9a5a8fbe8202785f059935af219fb97">true_</a>, <a class="code" href="group__integral.html#ga8e82f4758321e0e0b3705607f7d8e068">and_&lt;&gt;</a>&gt;()));</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same&lt;<a class="code" href="namespaceutl_1_1meta.html#ae9a5a8fbe8202785f059935af219fb97">true_</a>, <a class="code" href="group__integral.html#ga8e82f4758321e0e0b3705607f7d8e068">and_&lt;true_&gt;</a>&gt;()));</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same&lt;<a class="code" href="namespaceutl_1_1meta.html#a55511dbaa0adb605ce22dcec11f8d22d">false_</a>, <a class="code" href="group__integral.html#ga8e82f4758321e0e0b3705607f7d8e068">and_&lt;false_&gt;</a>&gt;()));</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same&lt;<a class="code" href="namespaceutl_1_1meta.html#ae9a5a8fbe8202785f059935af219fb97">true_</a>, <a class="code" href="group__integral.html#ga8e82f4758321e0e0b3705607f7d8e068">and_&lt;true_, true_&gt;</a>&gt;()));</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same&lt;<a class="code" href="namespaceutl_1_1meta.html#a55511dbaa0adb605ce22dcec11f8d22d">false_</a>, <a class="code" href="group__integral.html#ga8e82f4758321e0e0b3705607f7d8e068">and_&lt;true_, false_&gt;</a>&gt;()));</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same&lt;<a class="code" href="namespaceutl_1_1meta.html#ae9a5a8fbe8202785f059935af219fb97">true_</a>, <a class="code" href="group__integral.html#ga8e82f4758321e0e0b3705607f7d8e068">and_&lt;true_, true_, true_&gt;</a>&gt;()));</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same&lt;<a class="code" href="namespaceutl_1_1meta.html#a55511dbaa0adb605ce22dcec11f8d22d">false_</a>, <a class="code" href="group__integral.html#ga8e82f4758321e0e0b3705607f7d8e068">and_&lt;true_, true_, false_&gt;</a>&gt;()));</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160;</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (<a class="code" href="structutl_1_1meta_1_1same__.html">same_&lt;Foo, Foo&gt;</a>()));</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">false</span>, (<a class="code" href="structutl_1_1meta_1_1same__.html">same_&lt;Foo, Bar&gt;</a>()));</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (<a class="code" href="group__integral.html#ga4dfaf054d891eb35d741662b077bbbd2">not_same_&lt;Foo, Bar&gt;</a>()));</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</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="l00149"></a><span class="lineno"> 149</span>&#160; <span class="comment">/*</span></div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160;<span class="comment"> * Test integral constant arithmetic operations</span></div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00152"></a><span class="lineno"><a class="line" href="namespace_tmeta_basic.html#aabef072b3cd9e8f59bd696590b1b5dfd"> 152</a></span>&#160; <a class="code" href="namespace_tmeta_basic.html#adbcfd80fbcc5a0fa1a132ea56c18e7ec">TEST</a>(<a class="code" href="namespace_tmeta_basic.html">TmetaBasic</a>, ArithmeticOperations) {</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;42&gt;</a>(), <a class="code" href="namespaceutl_1_1meta.html#af74f5af58b33241f1b94102742a73ab1">inc</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;41&gt;</a>&gt;());</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;42&gt;</a>(), <a class="code" href="namespaceutl_1_1meta.html#abee96e75aadb364fdd0890aa3ee490b7">dec</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;43&gt;</a>&gt;());</div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;42&gt;</a>(), (<a class="code" href="namespaceutl_1_1meta.html#a559ad95ef39fd2c81664bd1a22dd99c1">add</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;23&gt;</a>, <a class="code" href="namespaceutl_1_1meta.html#a559ad95ef39fd2c81664bd1a22dd99c1">add</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;17&gt;</a>, <a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;2&gt;</a>&gt;&gt;()));</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;42&gt;</a>(), (<a class="code" href="namespaceutl_1_1meta.html#a9f90eea3852367afa4e1fe74756976fb">sub</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;108&gt;</a>, <a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;66&gt;</a>&gt;()));</div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;42&gt;</a>(), (<a class="code" href="namespaceutl_1_1meta.html#a5f0a890cbd116d4a72a760a26f5a8244">mult</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;7&gt;</a>, <a class="code" href="namespaceutl_1_1meta.html#a5f0a890cbd116d4a72a760a26f5a8244">mult</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;3&gt;</a>, <a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;2&gt;</a>&gt;&gt;()));</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;42&gt;</a>(), (<a class="code" href="namespaceutl_1_1meta.html#ae1ec6fc1f76abbb2e5287aa91cd85068">divide</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;210&gt;</a>, <a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;5&gt;</a>&gt;()));</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;42&gt;</a>(), <a class="code" href="namespaceutl_1_1meta.html#aec4bf9329ff8356d333a59e3c369d0b7">negate</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;-42&gt;</a>&gt;());</div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt; 1&gt;</a>(), (<a class="code" href="namespaceutl_1_1meta.html#adf7106374b1acc978be05b5848002cfc">modulo</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;43&gt;</a>, <a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;42&gt;</a>&gt;()));</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160; }</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160;</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160; <span class="comment">/*</span></div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160;<span class="comment"> * Test integral constant comparison operations</span></div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00166"></a><span class="lineno"><a class="line" href="namespace_tmeta_basic.html#a3ba38c6705e4f363cf52f330afedfdb6"> 166</a></span>&#160; <a class="code" href="namespace_tmeta_basic.html#adbcfd80fbcc5a0fa1a132ea56c18e7ec">TEST</a>(<a class="code" href="namespace_tmeta_basic.html">TmetaBasic</a>, ComparisonOperations) {</div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (<a class="code" href="namespaceutl_1_1meta.html#a7ae2d08147055946f1b9345e579a26b6">comp_eq</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;7&gt;</a>, <a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;7&gt;</a>&gt;()));</div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (<a class="code" href="namespaceutl_1_1meta.html#a7ae2d08147055946f1b9345e579a26b6">comp_eq</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;-7&gt;</a>, <a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;-7&gt;</a>&gt;()));</div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">false</span>, (<a class="code" href="namespaceutl_1_1meta.html#a7ae2d08147055946f1b9345e579a26b6">comp_eq</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;42&gt;</a>, <a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;7&gt;</a>&gt;()));</div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160;</div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (<a class="code" href="namespaceutl_1_1meta.html#af92bee16de47b16ba01a8efac686b488">comp_ne</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;42&gt;</a>, <a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;7&gt;</a>&gt;()));</div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">false</span>, (<a class="code" href="namespaceutl_1_1meta.html#af92bee16de47b16ba01a8efac686b488">comp_ne</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;42&gt;</a>, <a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;42&gt;</a>&gt;()));</div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (<a class="code" href="namespaceutl_1_1meta.html#af92bee16de47b16ba01a8efac686b488">comp_ne</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;42&gt;</a>, <a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;-42&gt;</a>&gt;()));</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160;</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (<a class="code" href="namespaceutl_1_1meta.html#a1a948746d1758a05c0ae71cfd114b05d">comp_lt</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;42&gt;</a>, <a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;43&gt;</a>&gt;()));</div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (<a class="code" href="namespaceutl_1_1meta.html#a1a948746d1758a05c0ae71cfd114b05d">comp_lt</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;-7&gt;</a>, <a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;-5&gt;</a>&gt;()));</div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">false</span>, (<a class="code" href="namespaceutl_1_1meta.html#a1a948746d1758a05c0ae71cfd114b05d">comp_lt</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;43&gt;</a>, <a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;42&gt;</a>&gt;()));</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160;</div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (<a class="code" href="namespaceutl_1_1meta.html#a3c4784ad3eb1f745c58b9a4b65a406e8">comp_gt</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;42&gt;</a>, <a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;7&gt;</a>&gt;()));</div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (<a class="code" href="namespaceutl_1_1meta.html#a3c4784ad3eb1f745c58b9a4b65a406e8">comp_gt</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;7&gt;</a>, <a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;-42&gt;</a>&gt;()));</div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">false</span>, (<a class="code" href="namespaceutl_1_1meta.html#a3c4784ad3eb1f745c58b9a4b65a406e8">comp_gt</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;7&gt;</a>, <a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;42&gt;</a>&gt;()));</div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160;</div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (<a class="code" href="namespaceutl_1_1meta.html#afb9a35dc5ef40b5bf9902c0daec7f1af">comp_le</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;7&gt;</a>, <a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;42&gt;</a>&gt;()));</div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (<a class="code" href="namespaceutl_1_1meta.html#afb9a35dc5ef40b5bf9902c0daec7f1af">comp_le</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;-7&gt;</a>, <a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;42&gt;</a>&gt;()));</div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (<a class="code" href="namespaceutl_1_1meta.html#afb9a35dc5ef40b5bf9902c0daec7f1af">comp_le</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;42&gt;</a>, <a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;42&gt;</a>&gt;()));</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (<a class="code" href="namespaceutl_1_1meta.html#afb9a35dc5ef40b5bf9902c0daec7f1af">comp_le</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;-7&gt;</a>, <a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;-7&gt;</a>&gt;()));</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">false</span>, (<a class="code" href="namespaceutl_1_1meta.html#afb9a35dc5ef40b5bf9902c0daec7f1af">comp_le</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;42&gt;</a>, <a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;7&gt;</a>&gt;()));</div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">false</span>, (<a class="code" href="namespaceutl_1_1meta.html#afb9a35dc5ef40b5bf9902c0daec7f1af">comp_le</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;7&gt;</a>, <a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;-42&gt;</a>&gt;()));</div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span>&#160;</div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (<a class="code" href="namespaceutl_1_1meta.html#ae6c552e8e99ac5578f865f17c1d0efdc">comp_ge</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;42&gt;</a>, <a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;7&gt;</a>&gt;()));</div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (<a class="code" href="namespaceutl_1_1meta.html#ae6c552e8e99ac5578f865f17c1d0efdc">comp_ge</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;42&gt;</a>, <a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;-7&gt;</a>&gt;()));</div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (<a class="code" href="namespaceutl_1_1meta.html#ae6c552e8e99ac5578f865f17c1d0efdc">comp_ge</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;42&gt;</a>, <a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;42&gt;</a>&gt;()));</div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (<a class="code" href="namespaceutl_1_1meta.html#ae6c552e8e99ac5578f865f17c1d0efdc">comp_ge</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;-7&gt;</a>, <a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;-7&gt;</a>&gt;()));</div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">false</span>, (<a class="code" href="namespaceutl_1_1meta.html#ae6c552e8e99ac5578f865f17c1d0efdc">comp_ge</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;42&gt;</a>, <a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;43&gt;</a>&gt;()));</div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">false</span>, (<a class="code" href="namespaceutl_1_1meta.html#ae6c552e8e99ac5578f865f17c1d0efdc">comp_ge</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;-7&gt;</a>, <a class="code" href="namespaceutl_1_1meta.html#a35b962b97f8277de66c1c8c02796eed4">int_&lt;42&gt;</a>&gt;()));</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span>&#160; }</div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span>&#160;</div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span>&#160; <span class="comment">/*</span></div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span>&#160;<span class="comment"> * Test integral constant bit operations</span></div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00201"></a><span class="lineno"><a class="line" href="namespace_tmeta_basic.html#ae75afce18d82aad495ef6b9f7d5c0470"> 201</a></span>&#160; <a class="code" href="namespace_tmeta_basic.html#adbcfd80fbcc5a0fa1a132ea56c18e7ec">TEST</a>(<a class="code" href="namespace_tmeta_basic.html">TmetaBasic</a>, BitOperations) {</div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (0x00, (<a class="code" href="namespaceutl_1_1meta.html#aca6b42898b47945118c518bde9d25cc2">bitand_</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#aae9c77ad9349e98af6cdc41e9b0090f8">uint8_&lt;0x55&gt;</a>, <a class="code" href="namespaceutl_1_1meta.html#aae9c77ad9349e98af6cdc41e9b0090f8">uint8_&lt;0xAA&gt;</a>&gt;()));</div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (0xFF, (<a class="code" href="namespaceutl_1_1meta.html#a1e2c2decdd22972fc8ce43203c0ef0d1">bitor_</a> &lt;<a class="code" href="namespaceutl_1_1meta.html#aae9c77ad9349e98af6cdc41e9b0090f8">uint8_&lt;0x55&gt;</a>, <a class="code" href="namespaceutl_1_1meta.html#aae9c77ad9349e98af6cdc41e9b0090f8">uint8_&lt;0xAA&gt;</a>&gt;()));</div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (0xFA, (<a class="code" href="namespaceutl_1_1meta.html#a910e21345bc7e75dc7c0ceb4a4721754">bitxor_</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#aae9c77ad9349e98af6cdc41e9b0090f8">uint8_&lt;0x55&gt;</a>, <a class="code" href="namespaceutl_1_1meta.html#aae9c77ad9349e98af6cdc41e9b0090f8">uint8_&lt;0xAF&gt;</a>&gt;()));</div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (0x00, (<a class="code" href="namespaceutl_1_1meta.html#a9ea199752ca985d1b813d7127868566c">bitnot_</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#aae9c77ad9349e98af6cdc41e9b0090f8">uint8_&lt;-1&gt;</a>&gt;()));</div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span>&#160;</div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (0x0000, (<a class="code" href="namespaceutl_1_1meta.html#aca6b42898b47945118c518bde9d25cc2">bitand_</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#af1b0b8109e3e61032c24d148202b6966">uint16_&lt;0x5555&gt;</a>, <a class="code" href="namespaceutl_1_1meta.html#af1b0b8109e3e61032c24d148202b6966">uint16_&lt;0xAAAA&gt;</a>&gt;()));</div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (0xFFFF, (<a class="code" href="namespaceutl_1_1meta.html#a1e2c2decdd22972fc8ce43203c0ef0d1">bitor_</a> &lt;<a class="code" href="namespaceutl_1_1meta.html#af1b0b8109e3e61032c24d148202b6966">uint16_&lt;0x5555&gt;</a>, <a class="code" href="namespaceutl_1_1meta.html#af1b0b8109e3e61032c24d148202b6966">uint16_&lt;0xAAAA&gt;</a>&gt;()));</div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (0xFFAA, (<a class="code" href="namespaceutl_1_1meta.html#a910e21345bc7e75dc7c0ceb4a4721754">bitxor_</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#af1b0b8109e3e61032c24d148202b6966">uint16_&lt;0x5555&gt;</a>, <a class="code" href="namespaceutl_1_1meta.html#af1b0b8109e3e61032c24d148202b6966">uint16_&lt;0xAAFF&gt;</a>&gt;()));</div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (0x0000, (<a class="code" href="namespaceutl_1_1meta.html#a9ea199752ca985d1b813d7127868566c">bitnot_</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#af1b0b8109e3e61032c24d148202b6966">uint16_&lt;-1&gt;</a>&gt;()));</div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span>&#160;</div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (0x04, (<a class="code" href="namespaceutl_1_1meta.html#a63088c29ac25eefda4189721e662b391">shift_left</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#aae9c77ad9349e98af6cdc41e9b0090f8">uint8_&lt;0x01&gt;</a>, <a class="code" href="namespaceutl_1_1meta.html#aae9c77ad9349e98af6cdc41e9b0090f8">uint8_&lt;2&gt;</a>&gt;()));</div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (0x00, (<a class="code" href="namespaceutl_1_1meta.html#a63088c29ac25eefda4189721e662b391">shift_left</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#aae9c77ad9349e98af6cdc41e9b0090f8">uint8_&lt;0x80&gt;</a>, <a class="code" href="namespaceutl_1_1meta.html#aae9c77ad9349e98af6cdc41e9b0090f8">uint8_&lt;1&gt;</a>&gt;()));</div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (0x02, (<a class="code" href="namespaceutl_1_1meta.html#acbe6dd78c4a4230e92acc5ca86e3fcc7">shift_right</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#aae9c77ad9349e98af6cdc41e9b0090f8">uint8_&lt;0x08&gt;</a>, <a class="code" href="namespaceutl_1_1meta.html#aae9c77ad9349e98af6cdc41e9b0090f8">uint8_&lt;2&gt;</a>&gt;()));</div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (0x00, (<a class="code" href="namespaceutl_1_1meta.html#acbe6dd78c4a4230e92acc5ca86e3fcc7">shift_right</a>&lt;<a class="code" href="namespaceutl_1_1meta.html#aae9c77ad9349e98af6cdc41e9b0090f8">uint8_&lt;0x01&gt;</a>, <a class="code" href="namespaceutl_1_1meta.html#aae9c77ad9349e98af6cdc41e9b0090f8">uint8_&lt;1&gt;</a>&gt;()));</div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span>&#160; }</div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span>&#160;</div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span>&#160; <span class="comment">/*</span></div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span>&#160;<span class="comment"> * SFINAE</span></div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span>&#160; template &lt;typename T, typename =when&lt;same_&lt;T, int&gt;::type::value&gt;&gt;</div><div class="line"><a name="l00222"></a><span class="lineno"><a class="line" href="namespace_tmeta_basic.html#ace6bcbc9c530fa498900e5fbcf6e7f49"> 222</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="namespace_tmeta_basic.html#ace6bcbc9c530fa498900e5fbcf6e7f49">check1</a> (T x) { <span class="keywordflow">return</span> x; }</div><div class="line"><a name="l00223"></a><span class="lineno"><a class="line" href="namespace_tmeta_basic.html#a8fd829e39bf3d2429d66205a392a458f"> 223</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="namespace_tmeta_basic.html#ace6bcbc9c530fa498900e5fbcf6e7f49">check1</a> (...) { <span class="keywordflow">return</span> 0; }</div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span>&#160;</div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span>&#160; template &lt;typename T, typename =enable_if_t&lt;same_&lt;T, int&gt;::type::value, <span class="keywordtype">void</span>&gt;&gt;</div><div class="line"><a name="l00226"></a><span class="lineno"><a class="line" href="namespace_tmeta_basic.html#a693588cb4aefc8048c1bc4fb414fa5fe"> 226</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="namespace_tmeta_basic.html#a693588cb4aefc8048c1bc4fb414fa5fe">check2</a> (T x) { <span class="keywordflow">return</span> x; }</div><div class="line"><a name="l00227"></a><span class="lineno"><a class="line" href="namespace_tmeta_basic.html#a691f22848ac59a710a5a588e25b79bdf"> 227</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="namespace_tmeta_basic.html#a693588cb4aefc8048c1bc4fb414fa5fe">check2</a> (...) { <span class="keywordflow">return</span> 0; }</div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span>&#160;</div><div class="line"><a name="l00229"></a><span class="lineno"><a class="line" href="namespace_tmeta_basic.html#a5662c8ed09164d9e4ffbcc3931580eb9"> 229</a></span>&#160; <a class="code" href="namespace_tmeta_basic.html#adbcfd80fbcc5a0fa1a132ea56c18e7ec">TEST</a>(<a class="code" href="namespace_tmeta_basic.html">TmetaBasic</a>, Sfinae) {</div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (42, <a class="code" href="namespace_tmeta_basic.html#ace6bcbc9c530fa498900e5fbcf6e7f49">check1</a>(42));</div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (0, <a class="code" href="namespace_tmeta_basic.html#ace6bcbc9c530fa498900e5fbcf6e7f49">check1</a>(42.0));</div><div class="line"><a name="l00232"></a><span class="lineno"> 232</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (0, <a class="code" href="namespace_tmeta_basic.html#ace6bcbc9c530fa498900e5fbcf6e7f49">check1</a>());</div><div class="line"><a name="l00233"></a><span class="lineno"> 233</span>&#160;</div><div class="line"><a name="l00234"></a><span class="lineno"> 234</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (42, <a class="code" href="namespace_tmeta_basic.html#a693588cb4aefc8048c1bc4fb414fa5fe">check2</a>(42));</div><div class="line"><a name="l00235"></a><span class="lineno"> 235</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (0, <a class="code" href="namespace_tmeta_basic.html#a693588cb4aefc8048c1bc4fb414fa5fe">check2</a>(42.0));</div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span>&#160; <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (0, <a class="code" href="namespace_tmeta_basic.html#a693588cb4aefc8048c1bc4fb414fa5fe">check2</a>());</div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span>&#160; }</div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span>&#160;</div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span>&#160;}</div><div class="ttc" id="group__type_html_gaf7089523d21cd405c76985643f31092a"><div class="ttname"><a href="group__type.html#gaf7089523d21cd405c76985643f31092a">utl::meta::first_of</a></div><div class="ttdeci">T1 first_of</div><div class="ttdoc">Select the first type of a type sequence. </div><div class="ttdef"><b>Definition:</b> <a href="selection_8h_source.html#l00076">selection.h:76</a></div></div>
  92. <div class="ttc" id="meta_8h_html"><div class="ttname"><a href="meta_8h.html">meta.h</a></div><div class="ttdoc">Include all meta library. </div></div>
  93. <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>
  94. <div class="ttc" id="namespaceutl_1_1meta_html_a7ae2d08147055946f1b9345e579a26b6"><div class="ttname"><a href="namespaceutl_1_1meta.html#a7ae2d08147055946f1b9345e579a26b6">utl::meta::comp_eq</a></div><div class="ttdeci">bool_&lt; _Tp1()==_Tp2()&gt; comp_eq</div><div class="ttdef"><b>Definition:</b> <a href="operations_8h_source.html#l00184">operations.h:184</a></div></div>
  95. <div class="ttc" id="namespaceutl_1_1meta_html_acbe6dd78c4a4230e92acc5ca86e3fcc7"><div class="ttname"><a href="namespaceutl_1_1meta.html#acbe6dd78c4a4230e92acc5ca86e3fcc7">utl::meta::shift_right</a></div><div class="ttdeci">integral_&lt; typename _Tp::value_type,(typename _Tp::value_type)(_Tp() &gt; &gt; shift())&gt; shift_right</div><div class="ttdef"><b>Definition:</b> <a href="operations_8h_source.html#l00221">operations.h:221</a></div></div>
  96. <div class="ttc" id="namespaceutl_1_1meta_html_af92bee16de47b16ba01a8efac686b488"><div class="ttname"><a href="namespaceutl_1_1meta.html#af92bee16de47b16ba01a8efac686b488">utl::meta::comp_ne</a></div><div class="ttdeci">not_&lt; comp_eq&lt; _Tp1, _Tp2 &gt; &gt; comp_ne</div><div class="ttdoc">Not equal. </div><div class="ttdef"><b>Definition:</b> <a href="operations_8h_source.html#l00189">operations.h:189</a></div></div>
  97. <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>
  98. <div class="ttc" id="group__type_html_ga39cc4e727a8faa5ea176f543e62c05c0"><div class="ttname"><a href="group__type.html#ga39cc4e727a8faa5ea176f543e62c05c0">utl::meta::if_</a></div><div class="ttdeci">if_c&lt; If::type::value, Args... &gt; if_</div><div class="ttdoc">Select one type or another depending on a compile-time Boolean type. </div><div class="ttdef"><b>Definition:</b> <a href="selection_8h_source.html#l00066">selection.h:66</a></div></div>
  99. <div class="ttc" id="namespaceutl_1_1meta_html_aca6b42898b47945118c518bde9d25cc2"><div class="ttname"><a href="namespaceutl_1_1meta.html#aca6b42898b47945118c518bde9d25cc2">utl::meta::bitand_</a></div><div class="ttdeci">integral_&lt; decltype(_Tp1() &amp;_Tp2()), _Tp1() &amp;_Tp2()&gt; bitand_</div><div class="ttdef"><b>Definition:</b> <a href="operations_8h_source.html#l00208">operations.h:208</a></div></div>
  100. <div class="ttc" id="namespaceutl_1_1meta_html_aec4bf9329ff8356d333a59e3c369d0b7"><div class="ttname"><a href="namespaceutl_1_1meta.html#aec4bf9329ff8356d333a59e3c369d0b7">utl::meta::negate</a></div><div class="ttdeci">integral_&lt; decltype(-_Tp()), -_Tp()&gt; negate</div><div class="ttdoc">Negation. </div><div class="ttdef"><b>Definition:</b> <a href="operations_8h_source.html#l00138">operations.h:138</a></div></div>
  101. <div class="ttc" id="namespaceutl_1_1meta_html_a9f90eea3852367afa4e1fe74756976fb"><div class="ttname"><a href="namespaceutl_1_1meta.html#a9f90eea3852367afa4e1fe74756976fb">utl::meta::sub</a></div><div class="ttdeci">add&lt; _Tp1, negate&lt; _Tp2 &gt; &gt; sub</div><div class="ttdoc">Substruction. </div><div class="ttdef"><b>Definition:</b> <a href="operations_8h_source.html#l00165">operations.h:165</a></div></div>
  102. <div class="ttc" id="namespaceutl_1_1meta_html_a5f0a890cbd116d4a72a760a26f5a8244"><div class="ttname"><a href="namespaceutl_1_1meta.html#a5f0a890cbd116d4a72a760a26f5a8244">utl::meta::mult</a></div><div class="ttdeci">integral_&lt; decltype(_Tp2() *_Tp2()), _Tp1() *_Tp2() &gt; mult</div><div class="ttdoc">Multiplication. </div><div class="ttdef"><b>Definition:</b> <a href="operations_8h_source.html#l00150">operations.h:150</a></div></div>
  103. <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>
  104. <div class="ttc" id="group__type_html_gaa3812817ce749832da73fdf5d2a85380"><div class="ttname"><a href="group__type.html#gaa3812817ce749832da73fdf5d2a85380">utl::meta::if_c</a></div><div class="ttdeci">eval&lt; detail::if_c_&lt; B, Args... &gt; &gt; if_c</div><div class="ttdoc">Select one type or another depending on a compile-time Boolean. </div><div class="ttdef"><b>Definition:</b> <a href="selection_8h_source.html#l00062">selection.h:62</a></div></div>
  105. <div class="ttc" id="namespace_tmeta_basic_html_adbcfd80fbcc5a0fa1a132ea56c18e7ec"><div class="ttname"><a href="namespace_tmeta_basic.html#adbcfd80fbcc5a0fa1a132ea56c18e7ec">TmetaBasic::TEST</a></div><div class="ttdeci">TEST(TmetaBasic, IntegrealType)</div><div class="ttdef"><b>Definition:</b> <a href="_tmeta_basic_8cpp_source.html#l00039">TmetaBasic.cpp:39</a></div></div>
  106. <div class="ttc" id="group__type_html_ga422dd1b0895f0074ad9932d68d9edbc5"><div class="ttname"><a href="group__type.html#ga422dd1b0895f0074ad9932d68d9edbc5">utl::meta::second_of</a></div><div class="ttdeci">T2 second_of</div><div class="ttdoc">Select the second type of a type sequence. </div><div class="ttdef"><b>Definition:</b> <a href="selection_8h_source.html#l00079">selection.h:79</a></div></div>
  107. <div class="ttc" id="namespaceutl_1_1meta_html_a1a948746d1758a05c0ae71cfd114b05d"><div class="ttname"><a href="namespaceutl_1_1meta.html#a1a948746d1758a05c0ae71cfd114b05d">utl::meta::comp_lt</a></div><div class="ttdeci">bool_&lt;(_Tp1()&lt; _Tp2())&gt; comp_lt</div><div class="ttdef"><b>Definition:</b> <a href="operations_8h_source.html#l00186">operations.h:186</a></div></div>
  108. <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>
  109. <div class="ttc" id="namespaceutl_1_1meta_html_a1e2c2decdd22972fc8ce43203c0ef0d1"><div class="ttname"><a href="namespaceutl_1_1meta.html#a1e2c2decdd22972fc8ce43203c0ef0d1">utl::meta::bitor_</a></div><div class="ttdeci">integral_&lt; decltype(_Tp1()|_Tp2()), _Tp1()|_Tp2()&gt; bitor_</div><div class="ttdef"><b>Definition:</b> <a href="operations_8h_source.html#l00211">operations.h:211</a></div></div>
  110. <div class="ttc" id="namespaceutl_1_1meta_html_a9ea199752ca985d1b813d7127868566c"><div class="ttname"><a href="namespaceutl_1_1meta.html#a9ea199752ca985d1b813d7127868566c">utl::meta::bitnot_</a></div><div class="ttdeci">integral_&lt; typename _T::value_type,(typename _T::value_type)(~_T())&gt; bitnot_</div><div class="ttdef"><b>Definition:</b> <a href="operations_8h_source.html#l00205">operations.h:205</a></div></div>
  111. <div class="ttc" id="gtest_8h_html"><div class="ttname"><a href="gtest_8h.html">gtest.h</a></div></div>
  112. <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>
  113. <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>
  114. <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>
  115. <div class="ttc" id="namespaceutl_1_1meta_html_adf7106374b1acc978be05b5848002cfc"><div class="ttname"><a href="namespaceutl_1_1meta.html#adf7106374b1acc978be05b5848002cfc">utl::meta::modulo</a></div><div class="ttdeci">integral_&lt; decltype(_Tp1() % _Tp2()), _Tp1() % _Tp2() &gt; modulo</div><div class="ttdoc">Modulo. </div><div class="ttdef"><b>Definition:</b> <a href="operations_8h_source.html#l00162">operations.h:162</a></div></div>
  116. <div class="ttc" id="namespaceutl_1_1meta_html_a3c4784ad3eb1f745c58b9a4b65a406e8"><div class="ttname"><a href="namespaceutl_1_1meta.html#a3c4784ad3eb1f745c58b9a4b65a406e8">utl::meta::comp_gt</a></div><div class="ttdeci">comp_lt&lt; _Tp2, _Tp1 &gt; comp_gt</div><div class="ttdoc">Greater than. </div><div class="ttdef"><b>Definition:</b> <a href="operations_8h_source.html#l00191">operations.h:191</a></div></div>
  117. <div class="ttc" id="namespaceutl_1_1meta_html_a63088c29ac25eefda4189721e662b391"><div class="ttname"><a href="namespaceutl_1_1meta.html#a63088c29ac25eefda4189721e662b391">utl::meta::shift_left</a></div><div class="ttdeci">integral_&lt; typename _Tp::value_type,(typename _Tp::value_type)(_Tp()&lt;&lt; shift())&gt; shift_left</div><div class="ttdef"><b>Definition:</b> <a href="operations_8h_source.html#l00218">operations.h:218</a></div></div>
  118. <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>
  119. <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>
  120. <div class="ttc" id="namespaceutl_1_1meta_html_a559ad95ef39fd2c81664bd1a22dd99c1"><div class="ttname"><a href="namespaceutl_1_1meta.html#a559ad95ef39fd2c81664bd1a22dd99c1">utl::meta::add</a></div><div class="ttdeci">integral_&lt; decltype(_Tp1()+_Tp2()), _Tp1()+_Tp2() &gt; add</div><div class="ttdoc">Addition. </div><div class="ttdef"><b>Definition:</b> <a href="operations_8h_source.html#l00144">operations.h:144</a></div></div>
  121. <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>
  122. <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>
  123. <div class="ttc" id="group__integral_html_ga7de987520bd0973f03ff8bab3152361a"><div class="ttname"><a href="group__integral.html#ga7de987520bd0973f03ff8bab3152361a">utl::meta::not_c</a></div><div class="ttdeci">bool_&lt;!B &gt; not_c</div><div class="ttdoc">Negate the bool constant parameter. </div><div class="ttdef"><b>Definition:</b> <a href="operations_8h_source.html#l00043">operations.h:43</a></div></div>
  124. <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>
  125. <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>
  126. <div class="ttc" id="structutl_1_1meta_1_1same___html"><div class="ttname"><a href="structutl_1_1meta_1_1same__.html">utl::meta::same_</a></div><div class="ttdef"><b>Definition:</b> <a href="operations_8h_source.html#l00102">operations.h:102</a></div></div>
  127. <div class="ttc" id="namespaceutl_1_1meta_html_a910e21345bc7e75dc7c0ceb4a4721754"><div class="ttname"><a href="namespaceutl_1_1meta.html#a910e21345bc7e75dc7c0ceb4a4721754">utl::meta::bitxor_</a></div><div class="ttdeci">integral_&lt; decltype(_Tp1() ^ _Tp2()), _Tp1() ^ _Tp2()&gt; bitxor_</div><div class="ttdef"><b>Definition:</b> <a href="operations_8h_source.html#l00215">operations.h:215</a></div></div>
  128. <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>
  129. <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>
  130. <div class="ttc" id="namespaceutl_1_1meta_html_abee96e75aadb364fdd0890aa3ee490b7"><div class="ttname"><a href="namespaceutl_1_1meta.html#abee96e75aadb364fdd0890aa3ee490b7">utl::meta::dec</a></div><div class="ttdeci">add&lt; _Tp, int_&lt;-1 &gt; &gt; dec</div><div class="ttdoc">decrease </div><div class="ttdef"><b>Definition:</b> <a href="operations_8h_source.html#l00173">operations.h:173</a></div></div>
  131. <div class="ttc" id="namespace_tmeta_basic_html_ace6bcbc9c530fa498900e5fbcf6e7f49"><div class="ttname"><a href="namespace_tmeta_basic.html#ace6bcbc9c530fa498900e5fbcf6e7f49">TmetaBasic::check1</a></div><div class="ttdeci">int check1(T x)</div><div class="ttdef"><b>Definition:</b> <a href="_tmeta_basic_8cpp_source.html#l00222">TmetaBasic.cpp:222</a></div></div>
  132. <div class="ttc" id="namespaceutl_1_1meta_html_ae6c552e8e99ac5578f865f17c1d0efdc"><div class="ttname"><a href="namespaceutl_1_1meta.html#ae6c552e8e99ac5578f865f17c1d0efdc">utl::meta::comp_ge</a></div><div class="ttdeci">not_&lt; comp_lt&lt; _Tp1, _Tp2 &gt; &gt; comp_ge</div><div class="ttdoc">Greater or equal. </div><div class="ttdef"><b>Definition:</b> <a href="operations_8h_source.html#l00195">operations.h:195</a></div></div>
  133. <div class="ttc" id="struct_tmeta_basic_1_1_identity_html_a9ab7e06acd9e4e822d8b925fd7749b5e"><div class="ttname"><a href="struct_tmeta_basic_1_1_identity.html#a9ab7e06acd9e4e822d8b925fd7749b5e">TmetaBasic::Identity::type</a></div><div class="ttdeci">T type</div><div class="ttdef"><b>Definition:</b> <a href="_tmeta_basic_8cpp_source.html#l00033">TmetaBasic.cpp:33</a></div></div>
  134. <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>
  135. <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>
  136. <div class="ttc" id="namespaceutl_1_1meta_html_ae1ec6fc1f76abbb2e5287aa91cd85068"><div class="ttname"><a href="namespaceutl_1_1meta.html#ae1ec6fc1f76abbb2e5287aa91cd85068">utl::meta::divide</a></div><div class="ttdeci">integral_&lt; decltype(_Tp2()/_Tp2()), _Tp1()/_Tp2() &gt; divide</div><div class="ttdoc">Division. </div><div class="ttdef"><b>Definition:</b> <a href="operations_8h_source.html#l00156">operations.h:156</a></div></div>
  137. <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>
  138. <div class="ttc" id="namespace_tmeta_basic_html_a693588cb4aefc8048c1bc4fb414fa5fe"><div class="ttname"><a href="namespace_tmeta_basic.html#a693588cb4aefc8048c1bc4fb414fa5fe">TmetaBasic::check2</a></div><div class="ttdeci">int check2(T x)</div><div class="ttdef"><b>Definition:</b> <a href="_tmeta_basic_8cpp_source.html#l00226">TmetaBasic.cpp:226</a></div></div>
  139. <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>
  140. <div class="ttc" id="gtest_8h_html_a4159019abda84f5366acdb7604ff220a"><div class="ttname"><a href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a></div><div class="ttdeci">#define EXPECT_EQ(val1, val2)</div><div class="ttdef"><b>Definition:</b> <a href="gtest_8h_source.html#l16643">gtest.h:16643</a></div></div>
  141. <div class="ttc" id="group__integral_html_ga4dfaf054d891eb35d741662b077bbbd2"><div class="ttname"><a href="group__integral.html#ga4dfaf054d891eb35d741662b077bbbd2">utl::meta::not_same_</a></div><div class="ttdeci">not_&lt; eval&lt; same_&lt; _T1, _T2 &gt; &gt;&gt; not_same_</div><div class="ttdef"><b>Definition:</b> <a href="operations_8h_source.html#l00111">operations.h:111</a></div></div>
  142. <div class="ttc" id="group__integral_html_gac43f400cc93d54f5f79892e618069d9b"><div class="ttname"><a href="group__integral.html#gac43f400cc93d54f5f79892e618069d9b">utl::meta::or_</a></div><div class="ttdeci">eval&lt; detail::_or_&lt; _Ts... &gt; &gt; or_</div><div class="ttdef"><b>Definition:</b> <a href="operations_8h_source.html#l00070">operations.h:70</a></div></div>
  143. <div class="ttc" id="group__integral_html_ga16df145331d3c62e624385c5949d90c4"><div class="ttname"><a href="group__integral.html#ga16df145331d3c62e624385c5949d90c4">utl::meta::not_</a></div><div class="ttdeci">not_c&lt; _Tp::type::value &gt; not_</div><div class="ttdoc">not </div><div class="ttdef"><b>Definition:</b> <a href="operations_8h_source.html#l00047">operations.h:47</a></div></div>
  144. <div class="ttc" id="group__integral_html_ga8e82f4758321e0e0b3705607f7d8e068"><div class="ttname"><a href="group__integral.html#ga8e82f4758321e0e0b3705607f7d8e068">utl::meta::and_</a></div><div class="ttdeci">eval&lt; detail::_and_&lt; _Ts... &gt; &gt; and_</div><div class="ttdef"><b>Definition:</b> <a href="operations_8h_source.html#l00096">operations.h:96</a></div></div>
  145. <div class="ttc" id="namespace_tmeta_basic_html"><div class="ttname"><a href="namespace_tmeta_basic.html">TmetaBasic</a></div><div class="ttdef"><b>Definition:</b> <a href="_tmeta_basic_8cpp_source.html#l00024">TmetaBasic.cpp:24</a></div></div>
  146. <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>
  147. <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>
  148. <div class="ttc" id="namespaceutl_1_1meta_html_afb9a35dc5ef40b5bf9902c0daec7f1af"><div class="ttname"><a href="namespaceutl_1_1meta.html#afb9a35dc5ef40b5bf9902c0daec7f1af">utl::meta::comp_le</a></div><div class="ttdeci">not_&lt; comp_lt&lt; _Tp2, _Tp1 &gt; &gt; comp_le</div><div class="ttdoc">Less or equal. </div><div class="ttdef"><b>Definition:</b> <a href="operations_8h_source.html#l00193">operations.h:193</a></div></div>
  149. <div class="ttc" id="struct_tmeta_basic_1_1_identity_html"><div class="ttname"><a href="struct_tmeta_basic_1_1_identity.html">TmetaBasic::Identity</a></div><div class="ttdef"><b>Definition:</b> <a href="_tmeta_basic_8cpp_source.html#l00032">TmetaBasic.cpp:32</a></div></div>
  150. <div class="ttc" id="namespaceutl_1_1meta_html_af74f5af58b33241f1b94102742a73ab1"><div class="ttname"><a href="namespaceutl_1_1meta.html#af74f5af58b33241f1b94102742a73ab1">utl::meta::inc</a></div><div class="ttdeci">add&lt; _Tp, int_&lt; 1 &gt; &gt; inc</div><div class="ttdoc">Increase. </div><div class="ttdef"><b>Definition:</b> <a href="operations_8h_source.html#l00169">operations.h:169</a></div></div>
  151. </div><!-- fragment --></div><!-- contents -->
  152. </div><!-- doc-content -->
  153. <!-- start footer part -->
  154. <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  155. <ul>
  156. <li class="navelem"><a class="el" href="dir_13e138d54eb8818da29c3992edef070a.html">test</a></li><li class="navelem"><a class="el" href="dir_d84abbe486a7f5f39e3c9088ffc1760a.html">tests</a></li><li class="navelem"><a class="el" href="_tmeta_basic_8cpp.html">TmetaBasic.cpp</a></li>
  157. <li class="footer">Generated by
  158. <a href="http://www.doxygen.org/index.html">
  159. <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
  160. </ul>
  161. </div>
  162. </body>
  163. </html>