|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
- <meta http-equiv="X-UA-Compatible" content="IE=9"/>
- <meta name="generator" content="Doxygen 1.8.14"/>
- <meta name="viewport" content="width=device-width, initial-scale=1"/>
- <title>uTL: test/tests/TmetaDetection.cpp Source File</title>
- <link href="tabs.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="jquery.js"></script>
- <script type="text/javascript" src="dynsections.js"></script>
- <link href="navtree.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="resize.js"></script>
- <script type="text/javascript" src="navtreedata.js"></script>
- <script type="text/javascript" src="navtree.js"></script>
- <script type="text/javascript">
- /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
- $(document).ready(initResizable);
- /* @license-end */</script>
- <link href="search/search.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="search/searchdata.js"></script>
- <script type="text/javascript" src="search/search.js"></script>
- <link href="doxygen.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
- <div id="titlearea">
- <table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
- <td id="projectalign" style="padding-left: 0.5em;">
- <div id="projectname">uTL
- </div>
- <div id="projectbrief">micro Template library</div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <!-- end header part -->
- <!-- Generated by Doxygen 1.8.14 -->
- <script type="text/javascript">
- /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
- var searchBox = new SearchBox("searchBox", "search",false,'Search');
- /* @license-end */
- </script>
- <script type="text/javascript" src="menudata.js"></script>
- <script type="text/javascript" src="menu.js"></script>
- <script type="text/javascript">
- /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
- $(function() {
- initMenu('',true,false,'search.php','Search');
- $(document).ready(function() { init_search(); });
- });
- /* @license-end */</script>
- <div id="main-nav"></div>
- </div><!-- top -->
- <div id="side-nav" class="ui-resizable side-nav-resizable">
- <div id="nav-tree">
- <div id="nav-tree-contents">
- <div id="nav-sync" class="sync"></div>
- </div>
- </div>
- <div id="splitbar" style="-moz-user-select:none;"
- class="ui-resizable-handle">
- </div>
- </div>
- <script type="text/javascript">
- /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
- $(document).ready(function(){initNavTree('_tmeta_detection_8cpp_source.html','');});
- /* @license-end */
- </script>
- <div id="doc-content">
- <!-- window showing the filter options -->
- <div id="MSearchSelectWindow"
- onmouseover="return searchBox.OnSearchSelectShow()"
- onmouseout="return searchBox.OnSearchSelectHide()"
- onkeydown="return searchBox.OnSearchSelectKey(event)">
- </div>
-
- <!-- iframe showing the search results (closed by default) -->
- <div id="MSearchResultsWindow">
- <iframe src="javascript:void(0)" frameborder="0"
- name="MSearchResults" id="MSearchResults">
- </iframe>
- </div>
-
- <div class="header">
- <div class="headertitle">
- <div class="title">TmetaDetection.cpp</div> </div>
- </div><!--header-->
- <div class="contents">
- <a href="_tmeta_detection_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> </div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include <<a class="code" href="meta_8h.html">utl/meta/meta.h</a>></span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include <<a class="code" href="gtest_8h.html">gtest/gtest.h</a>></span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include <type_traits></span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> </div><div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="namespace_tmeta_detection.html"> 24</a></span> <span class="keyword">namespace </span><a class="code" href="namespace_tmeta_detection.html">TmetaDetection</a> {</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  <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>  <span class="keyword">using namespace </span>meta;</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> </div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  <span class="comment">/*</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="comment"> * Types to behave like Fixtures</span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="comment"> */</span></div><div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="struct_tmeta_detection_1_1_foo.html"> 31</a></span>  <span class="keyword">struct </span><a class="code" href="struct_tmeta_detection_1_1_foo.html">Foo</a> {};</div><div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="struct_tmeta_detection_1_1_bar.html"> 32</a></span>  <span class="keyword">struct </span><a class="code" href="struct_tmeta_detection_1_1_bar.html">Bar</a> {};</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> </div><div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="struct_tmeta_detection_1_1_a.html"> 34</a></span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span><a class="code" href="struct_tmeta_detection_1_1_a.html">A</a> {</div><div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="struct_tmeta_detection_1_1_a.html#abb4c8bfc99b5eda5cf4022aebe3ce14c"> 35</a></span>  <span class="keyword">using</span> <a class="code" href="struct_tmeta_detection_1_1_a.html#abb4c8bfc99b5eda5cf4022aebe3ce14c">type</a> = T; <span class="comment">// nested type</span></div><div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="struct_tmeta_detection_1_1_a.html#a370babd29cb6d649218312629232ca2e"> 36</a></span>  <a class="code" href="struct_tmeta_detection_1_1_a.html#a370babd29cb6d649218312629232ca2e">A</a>(<span class="keywordtype">int</span> i, <span class="keywordtype">double</span> d) : i_(i), d_(d) {} <span class="comment">// declare a non-trivial constructor</span></div><div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="struct_tmeta_detection_1_1_a.html#a8d9dcbc3f32ae8c0a881855f6a589e5a"> 37</a></span>  <a class="code" href="struct_tmeta_detection_1_1_a.html">A</a>& <a class="code" href="struct_tmeta_detection_1_1_a.html#a8d9dcbc3f32ae8c0a881855f6a589e5a">operator++</a>() { ++i_; <span class="keywordflow">return</span> *<span class="keyword">this</span>; } <span class="comment">// declare an operator</span></div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> </div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="comment">// A sfinae function</span></div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  template <typename TT = T, typename = when<std::is_integral<TT>::type::value>></div><div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="struct_tmeta_detection_1_1_a.html#ada3b575458a82b475f0c11dc2187af3c"> 41</a></span>  TT <a class="code" href="struct_tmeta_detection_1_1_a.html#ada3b575458a82b475f0c11dc2187af3c">sfun</a> () { <span class="keywordflow">return</span> TT{}; }</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keywordtype">int</span> i_; <span class="keywordtype">double</span> d_;</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  };</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span> </div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <span class="comment">// A binary metafunction</span></div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T1, <span class="keyword">typename</span> T2></div><div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="struct_tmeta_detection_1_1m_fun.html"> 48</a></span>  <span class="keyword">struct </span><a class="code" href="struct_tmeta_detection_1_1m_fun.html">mFun</a> {</div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="struct_tmeta_detection_1_1m_fun.html#a27c6b961c5aad1b23c58d9809698489f"> 49</a></span>  <span class="keyword">using</span> <a class="code" href="struct_tmeta_detection_1_1m_fun.html#a27c6b961c5aad1b23c58d9809698489f">type</a> = std::is_same <T1, T2>;</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  };</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span> </div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <span class="comment">// detectors</span></div><div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="namespace_tmeta_detection.html#a8afedee9c8f0f980114df2970b85b3d6"> 53</a></span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">using</span> <a class="code" href="namespace_tmeta_detection.html#a8afedee9c8f0f980114df2970b85b3d6">try_type</a> = <span class="keyword">typename</span> T::type;</div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="namespace_tmeta_detection.html#a5b1aa9fde2d938f131aa21dfbc31066d"> 54</a></span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">using</span> <a class="code" href="namespace_tmeta_detection.html#a5b1aa9fde2d938f131aa21dfbc31066d">try_none</a> = <span class="keyword">typename</span> T::none;</div><div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="namespace_tmeta_detection.html#a51bb4ddb42b30683a5838f8425126955"> 55</a></span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">using</span> <a class="code" href="namespace_tmeta_detection.html#a51bb4ddb42b30683a5838f8425126955">try_ctor1</a>= decltype (T(std::declval<int>(), std::declval<double>()));</div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="namespace_tmeta_detection.html#a9fb54f795c97999192547571ba631be7"> 56</a></span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">using</span> <a class="code" href="namespace_tmeta_detection.html#a9fb54f795c97999192547571ba631be7">try_ctor2</a>= decltype (T(std::declval<int>()));</div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="namespace_tmeta_detection.html#a5a316a6cdd1fcf52966fee4f648f5986"> 57</a></span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">using</span> <a class="code" href="namespace_tmeta_detection.html#a5a316a6cdd1fcf52966fee4f648f5986">try_ppT</a> = decltype (++(std::declval<T>()));</div><div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="namespace_tmeta_detection.html#a449d376e34edf3b90990510b64998ed6"> 58</a></span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">using</span> <a class="code" href="namespace_tmeta_detection.html#a449d376e34edf3b90990510b64998ed6">try_Tpp</a> = decltype (std::declval<T>()++);</div><div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="namespace_tmeta_detection.html#ae8a09443bafe27ded567410f5d028934"> 59</a></span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">using</span> <a class="code" href="namespace_tmeta_detection.html#ae8a09443bafe27ded567410f5d028934">try_sfun</a> = decltype (std::declval<T>().sfun());</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span> </div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="comment">/*</span></div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span> <span class="comment"> * void_t</span></div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span> <span class="comment"> */</span></div><div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="namespace_tmeta_detection.html#aa064e60dc07918977247e299899d361b"> 64</a></span>  <a class="code" href="namespace_tmeta_detection.html#aa064e60dc07918977247e299899d361b">TEST</a>(<a class="code" href="namespace_tmeta_detection.html">TmetaDetection</a>, VoidType) {</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a>(<span class="keyword">true</span>, (std::is_same<<span class="keywordtype">void</span>, <a class="code" href="group__detection.html#gae7373c997420d16cf37e542eb3cfa3ad">void_t<int, long, void*, void, Foo, Bar></a>>()));</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a>(<span class="keyword">true</span>, (std::is_same<<span class="keywordtype">void</span>, <a class="code" href="group__detection.html#gae7373c997420d16cf37e542eb3cfa3ad">void_t<></a>>()));</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  }</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span> </div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class="comment">/*</span></div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span> <span class="comment"> * not a type</span></div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span> <span class="comment"> */</span></div><div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="namespace_tmeta_detection.html#aad05cd282a58a320252a8de7a8ec9ba5"> 72</a></span>  <a class="code" href="namespace_tmeta_detection.html#aa064e60dc07918977247e299899d361b">TEST</a>(<a class="code" href="namespace_tmeta_detection.html">TmetaDetection</a>, NotAType) {</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a>(<span class="keyword">false</span>, (std::is_default_constructible<nat_>()));</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a>(<span class="keyword">false</span>, (std::is_destructible<nat_>()));</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a>(<span class="keyword">false</span>, (std::is_copy_constructible<nat_>()));</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a>(<span class="keyword">false</span>, (std::is_copy_assignable<nat_>()));</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  }</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span> </div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <span class="comment">/*</span></div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span> <span class="comment"> * Idiom</span></div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span> <span class="comment"> */</span></div><div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="namespace_tmeta_detection.html#a022c84980b3a19f2087bf4694ff652a7"> 82</a></span>  <a class="code" href="namespace_tmeta_detection.html#aa064e60dc07918977247e299899d361b">TEST</a>(<a class="code" href="namespace_tmeta_detection.html">TmetaDetection</a>, IsDetected) {</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span> </div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same< <a class="code" href="namespaceutl_1_1meta.html#ae9a5a8fbe8202785f059935af219fb97">true_</a>, <a class="code" href="namespaceutl_1_1meta.html#a5329219a9d2f195421a78d8e07873507">is_detected</a><<a class="code" href="namespace_tmeta_detection.html#a8afedee9c8f0f980114df2970b85b3d6">try_type</a>, <a class="code" href="struct_tmeta_detection_1_1_a.html">A<int></a>> >()));</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same< <a class="code" href="namespaceutl_1_1meta.html#a55511dbaa0adb605ce22dcec11f8d22d">false_</a>, <a class="code" href="namespaceutl_1_1meta.html#a5329219a9d2f195421a78d8e07873507">is_detected</a><<a class="code" href="namespace_tmeta_detection.html#a5b1aa9fde2d938f131aa21dfbc31066d">try_none</a>, <a class="code" href="struct_tmeta_detection_1_1_a.html">A<int></a>> >()));</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same< <a class="code" href="namespaceutl_1_1meta.html#ae9a5a8fbe8202785f059935af219fb97">true_</a>, <a class="code" href="namespaceutl_1_1meta.html#a5329219a9d2f195421a78d8e07873507">is_detected</a><<a class="code" href="namespace_tmeta_detection.html#a51bb4ddb42b30683a5838f8425126955">try_ctor1</a>, <a class="code" href="struct_tmeta_detection_1_1_a.html">A<int></a>> >()));</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same< <a class="code" href="namespaceutl_1_1meta.html#a55511dbaa0adb605ce22dcec11f8d22d">false_</a>, <a class="code" href="namespaceutl_1_1meta.html#a5329219a9d2f195421a78d8e07873507">is_detected</a><<a class="code" href="namespace_tmeta_detection.html#a9fb54f795c97999192547571ba631be7">try_ctor2</a>, <a class="code" href="struct_tmeta_detection_1_1_a.html">A<int></a>> >()));</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same< <a class="code" href="namespaceutl_1_1meta.html#ae9a5a8fbe8202785f059935af219fb97">true_</a>, <a class="code" href="namespaceutl_1_1meta.html#a5329219a9d2f195421a78d8e07873507">is_detected</a><<a class="code" href="namespace_tmeta_detection.html#a5a316a6cdd1fcf52966fee4f648f5986">try_ppT</a>, <a class="code" href="struct_tmeta_detection_1_1_a.html">A<int></a>> >()));</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same< <a class="code" href="namespaceutl_1_1meta.html#a55511dbaa0adb605ce22dcec11f8d22d">false_</a>, <a class="code" href="namespaceutl_1_1meta.html#a5329219a9d2f195421a78d8e07873507">is_detected</a><<a class="code" href="namespace_tmeta_detection.html#a449d376e34edf3b90990510b64998ed6">try_Tpp</a>, <a class="code" href="struct_tmeta_detection_1_1_a.html">A<int></a>> >()));</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same< <a class="code" href="namespaceutl_1_1meta.html#ae9a5a8fbe8202785f059935af219fb97">true_</a>, <a class="code" href="namespaceutl_1_1meta.html#a5329219a9d2f195421a78d8e07873507">is_detected</a><<a class="code" href="namespace_tmeta_detection.html#ae8a09443bafe27ded567410f5d028934">try_sfun</a>, <a class="code" href="struct_tmeta_detection_1_1_a.html">A<int></a>> >()));</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same< <a class="code" href="namespaceutl_1_1meta.html#a55511dbaa0adb605ce22dcec11f8d22d">false_</a>, <a class="code" href="namespaceutl_1_1meta.html#a5329219a9d2f195421a78d8e07873507">is_detected</a><<a class="code" href="namespace_tmeta_detection.html#ae8a09443bafe27ded567410f5d028934">try_sfun</a>, <a class="code" href="struct_tmeta_detection_1_1_a.html">A<double></a>> >()));</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span> </div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same< <a class="code" href="namespaceutl_1_1meta.html#ae9a5a8fbe8202785f059935af219fb97">true_</a>, <a class="code" href="namespaceutl_1_1meta.html#a5329219a9d2f195421a78d8e07873507">is_detected<mFun, int, void></a> >()));</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same< <a class="code" href="namespaceutl_1_1meta.html#a55511dbaa0adb605ce22dcec11f8d22d">false_</a>, <a class="code" href="namespaceutl_1_1meta.html#a5329219a9d2f195421a78d8e07873507">is_detected<mFun, char></a> >()));</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same< <a class="code" href="namespaceutl_1_1meta.html#a55511dbaa0adb605ce22dcec11f8d22d">false_</a>, <a class="code" href="namespaceutl_1_1meta.html#a5329219a9d2f195421a78d8e07873507">is_detected<mFun, char, void, void></a> >()));</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span> </div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (<a class="code" href="namespaceutl_1_1meta.html#a4f3184ccb8e8ba2a78e2d2e83a0b9885">is_detected_v</a><<a class="code" href="namespace_tmeta_detection.html#a8afedee9c8f0f980114df2970b85b3d6">try_type</a>, <a class="code" href="struct_tmeta_detection_1_1_a.html">A<int></a>>));</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">false</span>,(<a class="code" href="namespaceutl_1_1meta.html#a4f3184ccb8e8ba2a78e2d2e83a0b9885">is_detected_v</a><<a class="code" href="namespace_tmeta_detection.html#a5b1aa9fde2d938f131aa21dfbc31066d">try_none</a>, <a class="code" href="struct_tmeta_detection_1_1_a.html">A<int></a>>));</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (is_detected_v<mFun, int, void>));</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span> </div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  }</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span> </div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <span class="comment">/*</span></div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span> <span class="comment"> * Idiom</span></div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span> <span class="comment"> */</span></div><div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="namespace_tmeta_detection.html#ae8ced9a0416f4a848bc4de38355d5ee8"> 106</a></span>  <a class="code" href="namespace_tmeta_detection.html#aa064e60dc07918977247e299899d361b">TEST</a>(<a class="code" href="namespace_tmeta_detection.html">TmetaDetection</a>, Toolkit) {</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span> </div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <span class="comment">// detected_t</span></div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same< <span class="keywordtype">int</span>, <a class="code" href="namespaceutl_1_1meta.html#aa654a286b3bc8e6d8116ee1f57087110">detected_t</a><<a class="code" href="namespace_tmeta_detection.html#a8afedee9c8f0f980114df2970b85b3d6">try_type</a>, <a class="code" href="struct_tmeta_detection_1_1_a.html">A<int></a>> >()));</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same< <a class="code" href="structutl_1_1meta_1_1nat__.html">nat_</a>, <a class="code" href="namespaceutl_1_1meta.html#aa654a286b3bc8e6d8116ee1f57087110">detected_t</a>< <a class="code" href="namespace_tmeta_detection.html#a5b1aa9fde2d938f131aa21dfbc31066d">try_none</a>, <a class="code" href="struct_tmeta_detection_1_1_a.html">A<int></a>> >()));</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same< <a class="code" href="struct_tmeta_detection_1_1_a.html">A<int></a>, <a class="code" href="namespaceutl_1_1meta.html#aa654a286b3bc8e6d8116ee1f57087110">detected_t</a>< <a class="code" href="namespace_tmeta_detection.html#a51bb4ddb42b30683a5838f8425126955">try_ctor1</a>, <a class="code" href="struct_tmeta_detection_1_1_a.html">A<int></a>> >()));</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same< <a class="code" href="structutl_1_1meta_1_1nat__.html">nat_</a>, <a class="code" href="namespaceutl_1_1meta.html#aa654a286b3bc8e6d8116ee1f57087110">detected_t</a>< <a class="code" href="namespace_tmeta_detection.html#a9fb54f795c97999192547571ba631be7">try_ctor2</a>, <a class="code" href="struct_tmeta_detection_1_1_a.html">A<int></a>> >()));</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same< <a class="code" href="struct_tmeta_detection_1_1_a.html">A<int></a>&,<a class="code" href="namespaceutl_1_1meta.html#aa654a286b3bc8e6d8116ee1f57087110">detected_t</a>< <a class="code" href="namespace_tmeta_detection.html#a5a316a6cdd1fcf52966fee4f648f5986">try_ppT</a>, <a class="code" href="struct_tmeta_detection_1_1_a.html">A<int></a>> >()));</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same< <a class="code" href="structutl_1_1meta_1_1nat__.html">nat_</a>, <a class="code" href="namespaceutl_1_1meta.html#aa654a286b3bc8e6d8116ee1f57087110">detected_t</a>< <a class="code" href="namespace_tmeta_detection.html#a449d376e34edf3b90990510b64998ed6">try_Tpp</a>, <a class="code" href="struct_tmeta_detection_1_1_a.html">A<int></a>> >()));</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same< <span class="keywordtype">int</span>, <a class="code" href="namespaceutl_1_1meta.html#aa654a286b3bc8e6d8116ee1f57087110">detected_t</a>< <a class="code" href="namespace_tmeta_detection.html#ae8a09443bafe27ded567410f5d028934">try_sfun</a>, <a class="code" href="struct_tmeta_detection_1_1_a.html">A<int></a>> >()));</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same< <a class="code" href="structutl_1_1meta_1_1nat__.html">nat_</a>, <a class="code" href="namespaceutl_1_1meta.html#aa654a286b3bc8e6d8116ee1f57087110">detected_t</a>< <a class="code" href="namespace_tmeta_detection.html#ae8a09443bafe27ded567410f5d028934">try_sfun</a>, <a class="code" href="struct_tmeta_detection_1_1_a.html">A<double></a>> >()));</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span> </div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same< <a class="code" href="structutl_1_1meta_1_1nat__.html">nat_</a>, <a class="code" href="namespaceutl_1_1meta.html#aa654a286b3bc8e6d8116ee1f57087110">detected_t<mFun, void></a> >()));</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same< <a class="code" href="struct_tmeta_detection_1_1m_fun.html">mFun<int, int></a>,</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <a class="code" href="namespaceutl_1_1meta.html#aa654a286b3bc8e6d8116ee1f57087110">detected_t<mFun, int, int></a> >()));</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span> </div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <span class="comment">// detected_or_t</span></div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same< <span class="keywordtype">int</span>, <a class="code" href="namespaceutl_1_1meta.html#a8fd055bc6c6c3b1d551e9605aa35644c">detected_or_t</a><<a class="code" href="struct_tmeta_detection_1_1_foo.html">Foo</a>, <a class="code" href="namespace_tmeta_detection.html#a8afedee9c8f0f980114df2970b85b3d6">try_type</a>, <a class="code" href="struct_tmeta_detection_1_1_a.html">A<int></a>> >()));</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same< <a class="code" href="struct_tmeta_detection_1_1_foo.html">Foo</a>, <a class="code" href="namespaceutl_1_1meta.html#a8fd055bc6c6c3b1d551e9605aa35644c">detected_or_t</a><<a class="code" href="struct_tmeta_detection_1_1_foo.html">Foo</a>, <a class="code" href="namespace_tmeta_detection.html#a5b1aa9fde2d938f131aa21dfbc31066d">try_none</a>, <a class="code" href="struct_tmeta_detection_1_1_a.html">A<int></a>> >()));</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same< <a class="code" href="struct_tmeta_detection_1_1_a.html">A<int></a>, <a class="code" href="namespaceutl_1_1meta.html#a8fd055bc6c6c3b1d551e9605aa35644c">detected_or_t</a><<span class="keywordtype">void</span>, <a class="code" href="namespace_tmeta_detection.html#a51bb4ddb42b30683a5838f8425126955">try_ctor1</a>, <a class="code" href="struct_tmeta_detection_1_1_a.html">A<int></a>> >()));</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same< <span class="keywordtype">void</span>, <a class="code" href="namespaceutl_1_1meta.html#a8fd055bc6c6c3b1d551e9605aa35644c">detected_or_t</a><<span class="keywordtype">void</span>, <a class="code" href="namespace_tmeta_detection.html#a9fb54f795c97999192547571ba631be7">try_ctor2</a>, <a class="code" href="struct_tmeta_detection_1_1_a.html">A<int></a>> >()));</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same< <a class="code" href="struct_tmeta_detection_1_1_a.html">A<int></a>&,<a class="code" href="namespaceutl_1_1meta.html#a8fd055bc6c6c3b1d551e9605aa35644c">detected_or_t</a><<a class="code" href="structutl_1_1meta_1_1nil__.html">nil_</a>, <a class="code" href="namespace_tmeta_detection.html#a5a316a6cdd1fcf52966fee4f648f5986">try_ppT</a>, <a class="code" href="struct_tmeta_detection_1_1_a.html">A<int></a>> >()));</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same< <a class="code" href="structutl_1_1meta_1_1nil__.html">nil_</a>, <a class="code" href="namespaceutl_1_1meta.html#a8fd055bc6c6c3b1d551e9605aa35644c">detected_or_t</a><<a class="code" href="structutl_1_1meta_1_1nil__.html">nil_</a>, <a class="code" href="namespace_tmeta_detection.html#a449d376e34edf3b90990510b64998ed6">try_Tpp</a>, <a class="code" href="struct_tmeta_detection_1_1_a.html">A<int></a>> >()));</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same< <span class="keywordtype">int</span>, <a class="code" href="namespaceutl_1_1meta.html#a8fd055bc6c6c3b1d551e9605aa35644c">detected_or_t</a><<span class="keywordtype">void</span>*, <a class="code" href="namespace_tmeta_detection.html#ae8a09443bafe27ded567410f5d028934">try_sfun</a>, <a class="code" href="struct_tmeta_detection_1_1_a.html">A<int></a>> >()));</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same< <span class="keywordtype">void</span>*, <a class="code" href="namespaceutl_1_1meta.html#a8fd055bc6c6c3b1d551e9605aa35644c">detected_or_t</a><<span class="keywordtype">void</span>*, <a class="code" href="namespace_tmeta_detection.html#ae8a09443bafe27ded567410f5d028934">try_sfun</a>, <a class="code" href="struct_tmeta_detection_1_1_a.html">A<double></a>> >()));</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span> </div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same< <a class="code" href="structutl_1_1meta_1_1nil__.html">nil_</a>, <a class="code" href="namespaceutl_1_1meta.html#a8fd055bc6c6c3b1d551e9605aa35644c">detected_or_t<nil_, mFun, int></a> >()));</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same< <a class="code" href="struct_tmeta_detection_1_1m_fun.html">mFun<char, int></a>,</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  <a class="code" href="namespaceutl_1_1meta.html#a8fd055bc6c6c3b1d551e9605aa35644c">detected_or_t<void, mFun, char, int></a> >()));</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span> </div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  <span class="comment">// is_detected_exact</span></div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same<<a class="code" href="namespaceutl_1_1meta.html#ae9a5a8fbe8202785f059935af219fb97">true_</a>, <a class="code" href="namespaceutl_1_1meta.html#ad5224ef66e8f40efaaf3ad3d605dd629">is_detected_exact</a>< <span class="keywordtype">int</span>, <a class="code" href="namespace_tmeta_detection.html#a8afedee9c8f0f980114df2970b85b3d6">try_type</a>, <a class="code" href="struct_tmeta_detection_1_1_a.html">A<int></a>> >()));</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same<<a class="code" href="namespaceutl_1_1meta.html#a55511dbaa0adb605ce22dcec11f8d22d">false_</a>, <a class="code" href="namespaceutl_1_1meta.html#ad5224ef66e8f40efaaf3ad3d605dd629">is_detected_exact</a>< <span class="keywordtype">int</span>, <a class="code" href="namespace_tmeta_detection.html#a5b1aa9fde2d938f131aa21dfbc31066d">try_none</a>, <a class="code" href="struct_tmeta_detection_1_1_a.html">A<int></a>> >()));</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same<<a class="code" href="namespaceutl_1_1meta.html#ae9a5a8fbe8202785f059935af219fb97">true_</a>, <a class="code" href="namespaceutl_1_1meta.html#ad5224ef66e8f40efaaf3ad3d605dd629">is_detected_exact</a>< <a class="code" href="struct_tmeta_detection_1_1_a.html">A<int></a>, <a class="code" href="namespace_tmeta_detection.html#a51bb4ddb42b30683a5838f8425126955">try_ctor1</a>, <a class="code" href="struct_tmeta_detection_1_1_a.html">A<int></a>> >()));</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same<<a class="code" href="namespaceutl_1_1meta.html#a55511dbaa0adb605ce22dcec11f8d22d">false_</a>, <a class="code" href="namespaceutl_1_1meta.html#ad5224ef66e8f40efaaf3ad3d605dd629">is_detected_exact</a>< <a class="code" href="struct_tmeta_detection_1_1_a.html">A<int></a>, <a class="code" href="namespace_tmeta_detection.html#a9fb54f795c97999192547571ba631be7">try_ctor2</a>, <a class="code" href="struct_tmeta_detection_1_1_a.html">A<int></a>> >()));</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same<<a class="code" href="namespaceutl_1_1meta.html#ae9a5a8fbe8202785f059935af219fb97">true_</a>, <a class="code" href="namespaceutl_1_1meta.html#ad5224ef66e8f40efaaf3ad3d605dd629">is_detected_exact</a>< <a class="code" href="struct_tmeta_detection_1_1_a.html">A<int></a>&,<a class="code" href="namespace_tmeta_detection.html#a5a316a6cdd1fcf52966fee4f648f5986">try_ppT</a>, <a class="code" href="struct_tmeta_detection_1_1_a.html">A<int></a>> >()));</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same<<a class="code" href="namespaceutl_1_1meta.html#a55511dbaa0adb605ce22dcec11f8d22d">false_</a>, <a class="code" href="namespaceutl_1_1meta.html#ad5224ef66e8f40efaaf3ad3d605dd629">is_detected_exact</a>< <a class="code" href="struct_tmeta_detection_1_1_a.html">A<int></a>&,<a class="code" href="namespace_tmeta_detection.html#a449d376e34edf3b90990510b64998ed6">try_Tpp</a>, <a class="code" href="struct_tmeta_detection_1_1_a.html">A<int></a>> >()));</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same<<a class="code" href="namespaceutl_1_1meta.html#ae9a5a8fbe8202785f059935af219fb97">true_</a>, <a class="code" href="namespaceutl_1_1meta.html#ad5224ef66e8f40efaaf3ad3d605dd629">is_detected_exact</a>< <span class="keywordtype">int</span>, <a class="code" href="namespace_tmeta_detection.html#ae8a09443bafe27ded567410f5d028934">try_sfun</a>, <a class="code" href="struct_tmeta_detection_1_1_a.html">A<int></a>> >()));</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same<<a class="code" href="namespaceutl_1_1meta.html#a55511dbaa0adb605ce22dcec11f8d22d">false_</a>, <a class="code" href="namespaceutl_1_1meta.html#ad5224ef66e8f40efaaf3ad3d605dd629">is_detected_exact</a>< <span class="keywordtype">int</span>, <a class="code" href="namespace_tmeta_detection.html#ae8a09443bafe27ded567410f5d028934">try_sfun</a>, <a class="code" href="struct_tmeta_detection_1_1_a.html">A<double></a>> >()));</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span> </div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same<<a class="code" href="namespaceutl_1_1meta.html#ae9a5a8fbe8202785f059935af219fb97">true_</a>, <a class="code" href="namespaceutl_1_1meta.html#ad5224ef66e8f40efaaf3ad3d605dd629">is_detected_exact</a><<a class="code" href="struct_tmeta_detection_1_1m_fun.html">mFun<char, int></a>, <a class="code" href="struct_tmeta_detection_1_1m_fun.html">mFun</a>, <span class="keywordtype">char</span>, <span class="keywordtype">int</span>> >()));</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same<<a class="code" href="namespaceutl_1_1meta.html#a55511dbaa0adb605ce22dcec11f8d22d">false_</a>, <a class="code" href="namespaceutl_1_1meta.html#ad5224ef66e8f40efaaf3ad3d605dd629">is_detected_exact</a><<a class="code" href="struct_tmeta_detection_1_1m_fun.html">mFun<int, int></a>, <a class="code" href="struct_tmeta_detection_1_1m_fun.html">mFun</a>, <span class="keywordtype">int</span>> >())); <span class="comment">// it would be better to check against mFun<int></span></div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span> </div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (<a class="code" href="namespaceutl_1_1meta.html#a960827a1d72083a511f8ea4ccc8beceb">is_detected_exact_v</a>< <span class="keywordtype">int</span>, <a class="code" href="namespace_tmeta_detection.html#a8afedee9c8f0f980114df2970b85b3d6">try_type</a>, <a class="code" href="struct_tmeta_detection_1_1_a.html">A<int></a>> ));</div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">false</span>,(<a class="code" href="namespaceutl_1_1meta.html#a960827a1d72083a511f8ea4ccc8beceb">is_detected_exact_v</a>< <span class="keywordtype">int</span>, <a class="code" href="namespace_tmeta_detection.html#a5b1aa9fde2d938f131aa21dfbc31066d">try_none</a>, <a class="code" href="struct_tmeta_detection_1_1_a.html">A<int></a>> ));</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span> </div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  <span class="comment">// is_detected_convertible</span></div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same<<a class="code" href="namespaceutl_1_1meta.html#ae9a5a8fbe8202785f059935af219fb97">true_</a>, <a class="code" href="namespaceutl_1_1meta.html#afa24702fa15a1d0a8a05761c54b79def">is_detected_convertible</a>< <span class="keywordtype">int</span>, <a class="code" href="namespace_tmeta_detection.html#a8afedee9c8f0f980114df2970b85b3d6">try_type</a>, <a class="code" href="struct_tmeta_detection_1_1_a.html">A<char></a>> >()));</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same<<a class="code" href="namespaceutl_1_1meta.html#a55511dbaa0adb605ce22dcec11f8d22d">false_</a>, <a class="code" href="namespaceutl_1_1meta.html#afa24702fa15a1d0a8a05761c54b79def">is_detected_convertible</a>< <span class="keywordtype">int</span>, <a class="code" href="namespace_tmeta_detection.html#a5b1aa9fde2d938f131aa21dfbc31066d">try_none</a>, <a class="code" href="struct_tmeta_detection_1_1_a.html">A<int></a>> >()));</div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (std::is_same<<a class="code" href="namespaceutl_1_1meta.html#a55511dbaa0adb605ce22dcec11f8d22d">false_</a>, <a class="code" href="namespaceutl_1_1meta.html#afa24702fa15a1d0a8a05761c54b79def">is_detected_convertible</a>< <a class="code" href="struct_tmeta_detection_1_1m_fun.html">mFun<int, int></a>, <a class="code" href="struct_tmeta_detection_1_1m_fun.html">mFun</a>, <span class="keywordtype">char</span>, <span class="keywordtype">int</span>> >()));</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span> </div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">true</span>, (<a class="code" href="namespaceutl_1_1meta.html#acba521b528e775be4b37d2e481e0f138">is_detected_convertible_v</a>< <span class="keywordtype">int</span>, <a class="code" href="namespace_tmeta_detection.html#a8afedee9c8f0f980114df2970b85b3d6">try_type</a>, <a class="code" href="struct_tmeta_detection_1_1_a.html">A<char></a>> ));</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  <a class="code" href="gtest_8h.html#a4159019abda84f5366acdb7604ff220a">EXPECT_EQ</a> (<span class="keyword">false</span>,(<a class="code" href="namespaceutl_1_1meta.html#acba521b528e775be4b37d2e481e0f138">is_detected_convertible_v</a>< <span class="keywordtype">int</span>, <a class="code" href="namespace_tmeta_detection.html#a5b1aa9fde2d938f131aa21dfbc31066d">try_none</a>, <a class="code" href="struct_tmeta_detection_1_1_a.html">A<int></a>> ));</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span> </div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  }</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span> }</div><div class="ttc" id="struct_tmeta_detection_1_1_a_html_a8d9dcbc3f32ae8c0a881855f6a589e5a"><div class="ttname"><a href="struct_tmeta_detection_1_1_a.html#a8d9dcbc3f32ae8c0a881855f6a589e5a">TmetaDetection::A::operator++</a></div><div class="ttdeci">A & operator++()</div><div class="ttdef"><b>Definition:</b> <a href="_tmeta_detection_8cpp_source.html#l00037">TmetaDetection.cpp:37</a></div></div>
- <div class="ttc" id="namespace_tmeta_detection_html_ae8a09443bafe27ded567410f5d028934"><div class="ttname"><a href="namespace_tmeta_detection.html#ae8a09443bafe27ded567410f5d028934">TmetaDetection::try_sfun</a></div><div class="ttdeci">decltype(std::declval< T >().sfun()) try_sfun</div><div class="ttdef"><b>Definition:</b> <a href="_tmeta_detection_8cpp_source.html#l00059">TmetaDetection.cpp:59</a></div></div>
- <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>
- <div class="ttc" id="group__detection_html_gae7373c997420d16cf37e542eb3cfa3ad"><div class="ttname"><a href="group__detection.html#gae7373c997420d16cf37e542eb3cfa3ad">utl::meta::void_t</a></div><div class="ttdeci">void void_t</div><div class="ttdoc">void_t type alias </div><div class="ttdef"><b>Definition:</b> <a href="detection_8h_source.html#l00055">detection.h:55</a></div></div>
- <div class="ttc" id="namespaceutl_1_1meta_html_a960827a1d72083a511f8ea4ccc8beceb"><div class="ttname"><a href="namespaceutl_1_1meta.html#a960827a1d72083a511f8ea4ccc8beceb">utl::meta::is_detected_exact_v</a></div><div class="ttdeci">constexpr bool is_detected_exact_v</div><div class="ttdoc">evaluates to true if evaluation of Op<Args...> is Expected and to false if not </div><div class="ttdef"><b>Definition:</b> <a href="detection_8h_source.html#l00204">detection.h:204</a></div></div>
- <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_< true > 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>
- <div class="ttc" id="struct_tmeta_detection_1_1m_fun_html_a27c6b961c5aad1b23c58d9809698489f"><div class="ttname"><a href="struct_tmeta_detection_1_1m_fun.html#a27c6b961c5aad1b23c58d9809698489f">TmetaDetection::mFun::type</a></div><div class="ttdeci">std::is_same< T1, T2 > type</div><div class="ttdef"><b>Definition:</b> <a href="_tmeta_detection_8cpp_source.html#l00049">TmetaDetection.cpp:49</a></div></div>
- <div class="ttc" id="namespaceutl_1_1meta_html_afa24702fa15a1d0a8a05761c54b79def"><div class="ttname"><a href="namespaceutl_1_1meta.html#afa24702fa15a1d0a8a05761c54b79def">utl::meta::is_detected_convertible</a></div><div class="ttdeci">eval< std::is_convertible< detected_t< Op, Args... >, To > > is_detected_convertible</div><div class="ttdef"><b>Definition:</b> <a href="detection_8h_source.html#l00231">detection.h:231</a></div></div>
- <div class="ttc" id="namespace_tmeta_detection_html_a5b1aa9fde2d938f131aa21dfbc31066d"><div class="ttname"><a href="namespace_tmeta_detection.html#a5b1aa9fde2d938f131aa21dfbc31066d">TmetaDetection::try_none</a></div><div class="ttdeci">typename T::none try_none</div><div class="ttdef"><b>Definition:</b> <a href="_tmeta_detection_8cpp_source.html#l00054">TmetaDetection.cpp:54</a></div></div>
- <div class="ttc" id="gtest_8h_html"><div class="ttname"><a href="gtest_8h.html">gtest.h</a></div></div>
- <div class="ttc" id="struct_tmeta_detection_1_1_a_html_abb4c8bfc99b5eda5cf4022aebe3ce14c"><div class="ttname"><a href="struct_tmeta_detection_1_1_a.html#abb4c8bfc99b5eda5cf4022aebe3ce14c">TmetaDetection::A::type</a></div><div class="ttdeci">T type</div><div class="ttdef"><b>Definition:</b> <a href="_tmeta_detection_8cpp_source.html#l00035">TmetaDetection.cpp:35</a></div></div>
- <div class="ttc" id="structutl_1_1meta_1_1nat___html"><div class="ttname"><a href="structutl_1_1meta_1_1nat__.html">utl::meta::nat_</a></div><div class="ttdef"><b>Definition:</b> <a href="detection_8h_source.html#l00063">detection.h:63</a></div></div>
- <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>
- <div class="ttc" id="struct_tmeta_detection_1_1_a_html_ada3b575458a82b475f0c11dc2187af3c"><div class="ttname"><a href="struct_tmeta_detection_1_1_a.html#ada3b575458a82b475f0c11dc2187af3c">TmetaDetection::A::sfun</a></div><div class="ttdeci">TT sfun()</div><div class="ttdef"><b>Definition:</b> <a href="_tmeta_detection_8cpp_source.html#l00041">TmetaDetection.cpp:41</a></div></div>
- <div class="ttc" id="namespace_tmeta_detection_html_aa064e60dc07918977247e299899d361b"><div class="ttname"><a href="namespace_tmeta_detection.html#aa064e60dc07918977247e299899d361b">TmetaDetection::TEST</a></div><div class="ttdeci">TEST(TmetaDetection, VoidType)</div><div class="ttdef"><b>Definition:</b> <a href="_tmeta_detection_8cpp_source.html#l00064">TmetaDetection.cpp:64</a></div></div>
- <div class="ttc" id="namespace_tmeta_detection_html_a449d376e34edf3b90990510b64998ed6"><div class="ttname"><a href="namespace_tmeta_detection.html#a449d376e34edf3b90990510b64998ed6">TmetaDetection::try_Tpp</a></div><div class="ttdeci">decltype(std::declval< T >()++) try_Tpp</div><div class="ttdef"><b>Definition:</b> <a href="_tmeta_detection_8cpp_source.html#l00058">TmetaDetection.cpp:58</a></div></div>
- <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_< false > 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>
- <div class="ttc" id="namespace_tmeta_detection_html"><div class="ttname"><a href="namespace_tmeta_detection.html">TmetaDetection</a></div><div class="ttdef"><b>Definition:</b> <a href="_tmeta_detection_8cpp_source.html#l00024">TmetaDetection.cpp:24</a></div></div>
- <div class="ttc" id="namespaceutl_1_1meta_html_acba521b528e775be4b37d2e481e0f138"><div class="ttname"><a href="namespaceutl_1_1meta.html#acba521b528e775be4b37d2e481e0f138">utl::meta::is_detected_convertible_v</a></div><div class="ttdeci">constexpr bool is_detected_convertible_v</div><div class="ttdef"><b>Definition:</b> <a href="detection_8h_source.html#l00237">detection.h:237</a></div></div>
- <div class="ttc" id="namespaceutl_html"><div class="ttname"><a href="namespaceutl.html">utl</a></div><div class="ttdoc">STL&#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>
- <div class="ttc" id="namespaceutl_1_1meta_html_aa654a286b3bc8e6d8116ee1f57087110"><div class="ttname"><a href="namespaceutl_1_1meta.html#aa654a286b3bc8e6d8116ee1f57087110">utl::meta::detected_t</a></div><div class="ttdeci">eval< detail::detector< nat_, void, Op, Args... > > detected_t</div><div class="ttdef"><b>Definition:</b> <a href="detection_8h_source.html#l00146">detection.h:146</a></div></div>
- <div class="ttc" id="struct_tmeta_detection_1_1_a_html"><div class="ttname"><a href="struct_tmeta_detection_1_1_a.html">TmetaDetection::A</a></div><div class="ttdef"><b>Definition:</b> <a href="_tmeta_detection_8cpp_source.html#l00034">TmetaDetection.cpp:34</a></div></div>
- <div class="ttc" id="namespace_tmeta_detection_html_a8afedee9c8f0f980114df2970b85b3d6"><div class="ttname"><a href="namespace_tmeta_detection.html#a8afedee9c8f0f980114df2970b85b3d6">TmetaDetection::try_type</a></div><div class="ttdeci">typename T::type try_type</div><div class="ttdef"><b>Definition:</b> <a href="_tmeta_detection_8cpp_source.html#l00053">TmetaDetection.cpp:53</a></div></div>
- <div class="ttc" id="namespace_tmeta_detection_html_a9fb54f795c97999192547571ba631be7"><div class="ttname"><a href="namespace_tmeta_detection.html#a9fb54f795c97999192547571ba631be7">TmetaDetection::try_ctor2</a></div><div class="ttdeci">decltype(T(std::declval< int >())) try_ctor2</div><div class="ttdef"><b>Definition:</b> <a href="_tmeta_detection_8cpp_source.html#l00056">TmetaDetection.cpp:56</a></div></div>
- <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>
- <div class="ttc" id="struct_tmeta_detection_1_1m_fun_html"><div class="ttname"><a href="struct_tmeta_detection_1_1m_fun.html">TmetaDetection::mFun</a></div><div class="ttdef"><b>Definition:</b> <a href="_tmeta_detection_8cpp_source.html#l00048">TmetaDetection.cpp:48</a></div></div>
- <div class="ttc" id="struct_tmeta_detection_1_1_a_html_a370babd29cb6d649218312629232ca2e"><div class="ttname"><a href="struct_tmeta_detection_1_1_a.html#a370babd29cb6d649218312629232ca2e">TmetaDetection::A::A</a></div><div class="ttdeci">A(int i, double d)</div><div class="ttdef"><b>Definition:</b> <a href="_tmeta_detection_8cpp_source.html#l00036">TmetaDetection.cpp:36</a></div></div>
- <div class="ttc" id="struct_tmeta_detection_1_1_foo_html"><div class="ttname"><a href="struct_tmeta_detection_1_1_foo.html">TmetaDetection::Foo</a></div><div class="ttdef"><b>Definition:</b> <a href="_tmeta_detection_8cpp_source.html#l00031">TmetaDetection.cpp:31</a></div></div>
- <div class="ttc" id="namespaceutl_1_1meta_html_ad5224ef66e8f40efaaf3ad3d605dd629"><div class="ttname"><a href="namespaceutl_1_1meta.html#ad5224ef66e8f40efaaf3ad3d605dd629">utl::meta::is_detected_exact</a></div><div class="ttdeci">eval< same_< Expected, detected_t< Op, Args... > > > is_detected_exact</div><div class="ttdef"><b>Definition:</b> <a href="detection_8h_source.html#l00199">detection.h:199</a></div></div>
- <div class="ttc" id="struct_tmeta_detection_1_1_bar_html"><div class="ttname"><a href="struct_tmeta_detection_1_1_bar.html">TmetaDetection::Bar</a></div><div class="ttdef"><b>Definition:</b> <a href="_tmeta_detection_8cpp_source.html#l00032">TmetaDetection.cpp:32</a></div></div>
- <div class="ttc" id="namespaceutl_1_1meta_html_a5329219a9d2f195421a78d8e07873507"><div class="ttname"><a href="namespaceutl_1_1meta.html#a5329219a9d2f195421a78d8e07873507">utl::meta::is_detected</a></div><div class="ttdeci">typename detail::detector< nat_, void, Op, Args... >::detected is_detected</div><div class="ttdef"><b>Definition:</b> <a href="detection_8h_source.html#l00118">detection.h:118</a></div></div>
- <div class="ttc" id="namespace_tmeta_detection_html_a5a316a6cdd1fcf52966fee4f648f5986"><div class="ttname"><a href="namespace_tmeta_detection.html#a5a316a6cdd1fcf52966fee4f648f5986">TmetaDetection::try_ppT</a></div><div class="ttdeci">decltype(++(std::declval< T >())) try_ppT</div><div class="ttdef"><b>Definition:</b> <a href="_tmeta_detection_8cpp_source.html#l00057">TmetaDetection.cpp:57</a></div></div>
- <div class="ttc" id="namespaceutl_1_1meta_html_a4f3184ccb8e8ba2a78e2d2e83a0b9885"><div class="ttname"><a href="namespaceutl_1_1meta.html#a4f3184ccb8e8ba2a78e2d2e83a0b9885">utl::meta::is_detected_v</a></div><div class="ttdeci">constexpr bool is_detected_v</div><div class="ttdoc">Detection predicate. </div><div class="ttdef"><b>Definition:</b> <a href="detection_8h_source.html#l00122">detection.h:122</a></div></div>
- <div class="ttc" id="namespaceutl_1_1meta_html_a8fd055bc6c6c3b1d551e9605aa35644c"><div class="ttname"><a href="namespaceutl_1_1meta.html#a8fd055bc6c6c3b1d551e9605aa35644c">utl::meta::detected_or_t</a></div><div class="ttdeci">eval< detail::detected_or< Default, Op, Args... > > detected_or_t</div><div class="ttdef"><b>Definition:</b> <a href="detection_8h_source.html#l00172">detection.h:172</a></div></div>
- <div class="ttc" id="namespace_tmeta_detection_html_a51bb4ddb42b30683a5838f8425126955"><div class="ttname"><a href="namespace_tmeta_detection.html#a51bb4ddb42b30683a5838f8425126955">TmetaDetection::try_ctor1</a></div><div class="ttdeci">decltype(T(std::declval< int >(), std::declval< double >())) try_ctor1</div><div class="ttdef"><b>Definition:</b> <a href="_tmeta_detection_8cpp_source.html#l00055">TmetaDetection.cpp:55</a></div></div>
- </div><!-- fragment --></div><!-- contents -->
- </div><!-- doc-content -->
- <!-- start footer part -->
- <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
- <ul>
- <li class="navelem"><a class="el" href="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_detection_8cpp.html">TmetaDetection.cpp</a></li>
- <li class="footer">Generated by
- <a href="http://www.doxygen.org/index.html">
- <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
- </ul>
- </div>
- </body>
- </html>
|