|
- <!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: W:/Work/Software/Libraries/utl/include/utl/concepts/defines.h</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('_w_1_2_work_2_software_2_libraries_2utl_2include_2utl_2concepts_2defines_8h-example.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">W:/Work/Software/Libraries/utl/include/utl/concepts/defines.h</div> </div>
- </div><!--header-->
- <div class="contents">
- <p>utl typename constraints wrapper</p><div class="fragment"><div class="line"><span class="keyword">template</span> <utlConstrainType(SomeConcept) T> <span class="keyword">struct </span>lala { };</div><div class="line"><span class="comment">// will expand to something like:</span></div><div class="line"><span class="comment">// template <SomeConcept T> struct lala { };</span></div><div class="line"><span class="comment">// or</span></div><div class="line"><span class="comment">// template <typename T> struct lala { };</span></div></div><!-- fragment --><div class="fragment"><div class="line"></div><div class="line"><span class="preprocessor">#ifndef __utl_concepts_defines_h__</span></div><div class="line"><span class="preprocessor">#define __utl_concepts_defines_h__</span></div><div class="line"></div><div class="line"></div><div class="line"><span class="preprocessor">#if CXX_CONCEPTS</span></div><div class="line"><span class="preprocessor"> #define utlConstrainType(_Concept_) _Concept_</span></div><div class="line"><span class="preprocessor">#else</span></div><div class="line"><span class="preprocessor"> #define utlConstrainType(_Concept_) typename</span></div><div class="line"><span class="preprocessor">#endif</span></div><div class="line"></div><div class="line"><span class="preprocessor">#if CXX_CONCEPTS</span></div><div class="line"><span class="preprocessor"> #if __cpp_concepts <= 201507L</span></div><div class="line"><span class="preprocessor"> #define _utlConcept concept bool</span></div><div class="line"><span class="preprocessor"> #else</span></div><div class="line"><span class="preprocessor"> #define _utlConcept concept</span></div><div class="line"><span class="preprocessor"> #endif</span></div><div class="line"><span class="preprocessor">#else</span></div><div class="line"><span class="preprocessor"> #define _utlConcept constexpr bool</span></div><div class="line"><span class="preprocessor">#endif</span></div><div class="line"></div><div class="line"><span class="preprocessor">#ifndef CXX_LIB_INVOKE</span></div><div class="line"><span class="preprocessor"> #ifdef __cpp_lib_invoke</span></div><div class="line"><span class="preprocessor"> #define CXX_LIB_INVOKE __cpp_lib_invoke</span></div><div class="line"><span class="preprocessor"> #else</span></div><div class="line"><span class="preprocessor"> #define CXX_LIB_INVOKE 0</span></div><div class="line"><span class="preprocessor"> #endif</span></div><div class="line"><span class="preprocessor">#endif</span></div><div class="line"></div><div class="line"></div><div class="line"><span class="preprocessor">#endif </span><span class="comment">/* __utl_concepts_defines_h__ */</span><span class="preprocessor"></span></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="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>
|