|
- <!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: include/utl/meta/detection.h File Reference</title>
- <link href="tabs.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="jquery.js"></script>
- <script type="text/javascript" src="dynsections.js"></script>
- <link href="navtree.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="resize.js"></script>
- <script type="text/javascript" src="navtreedata.js"></script>
- <script type="text/javascript" src="navtree.js"></script>
- <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('detection_8h.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="summary">
- <a href="#nested-classes">Classes</a> |
- <a href="#namespaces">Namespaces</a> |
- <a href="#typedef-members">Typedefs</a> </div>
- <div class="headertitle">
- <div class="title">detection.h File Reference</div> </div>
- </div><!--header-->
- <div class="contents">
-
- <p>Detection idiom based on WG21's N4502 [<a class="el" href="detection_8h.html#n4502">n4502</a> 1] from Walter E. Brown.
- <a href="#details">More...</a></p>
- <div class="textblock"><code>#include <<a class="el" href="impl_8h_source.html">utl/core/impl.h</a>></code><br />
- <code>#include <<a class="el" href="operations_8h_source.html">utl/meta/operations.h</a>></code><br />
- <code>#include <type_traits></code><br />
- </div>
- <p><a href="detection_8h_source.html">Go to the source code of this file.</a></p>
- <table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
- Classes</h2></td></tr>
- <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structutl_1_1meta_1_1nat__.html">utl::meta::nat_</a></td></tr>
- <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structutl_1_1meta_1_1detail_1_1detector.html">utl::meta::detail::detector< Default, AlwaysVoid, Op, Args ></a></td></tr>
- <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structutl_1_1meta_1_1detail_1_1detector_3_01_default_00_01void__t_3_01_op_3_01_args_8_8_8_01_4_0c35bdbd19f56980c0b5ee6d490bfb634.html">utl::meta::detail::detector< Default, void_t< Op< Args... > >, Op, Args... ></a></td></tr>
- <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
- </table><table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
- Namespaces</h2></td></tr>
- <tr class="memitem:namespaceutl"><td class="memItemLeft" align="right" valign="top">  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceutl.html">utl</a></td></tr>
- <tr class="memdesc:namespaceutl"><td class="mdescLeft"> </td><td class="mdescRight">STL's core language concepts. <br /></td></tr>
- <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:namespaceutl_1_1meta"><td class="memItemLeft" align="right" valign="top">  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceutl_1_1meta.html">utl::meta</a></td></tr>
- <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:namespaceutl_1_1meta_1_1detail"><td class="memItemLeft" align="right" valign="top">  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceutl_1_1meta_1_1detail.html">utl::meta::detail</a></td></tr>
- <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
- </table><table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
- Typedefs</h2></td></tr>
- <tr class="memitem:gac16d50de47cf57734433e9ea636522c5"><td class="memTemplParams" colspan="2">template<typename... > </td></tr>
- <tr class="memitem:gac16d50de47cf57734433e9ea636522c5"><td class="memTemplItemLeft" align="right" valign="top">using </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__detection.html#gac16d50de47cf57734433e9ea636522c5">utl::meta::void_</a> = void</td></tr>
- <tr class="memdesc:gac16d50de47cf57734433e9ea636522c5"><td class="mdescLeft"> </td><td class="mdescRight">void_ type alias <a href="group__detection.html#gac16d50de47cf57734433e9ea636522c5">More...</a><br /></td></tr>
- <tr class="separator:gac16d50de47cf57734433e9ea636522c5"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:gae7373c997420d16cf37e542eb3cfa3ad"><td class="memTemplParams" colspan="2">template<typename... > </td></tr>
- <tr class="memitem:gae7373c997420d16cf37e542eb3cfa3ad"><td class="memTemplItemLeft" align="right" valign="top">using </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__detection.html#gae7373c997420d16cf37e542eb3cfa3ad">utl::meta::void_t</a> = void</td></tr>
- <tr class="memdesc:gae7373c997420d16cf37e542eb3cfa3ad"><td class="mdescLeft"> </td><td class="mdescRight">void_t type alias <a href="group__detection.html#gae7373c997420d16cf37e542eb3cfa3ad">More...</a><br /></td></tr>
- <tr class="separator:gae7373c997420d16cf37e542eb3cfa3ad"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a835827cb3116483228d6f7f774b68970"><td class="memTemplParams" colspan="2">template<typename Default , template< typename... > class Op, typename... Args> </td></tr>
- <tr class="memitem:a835827cb3116483228d6f7f774b68970"><td class="memTemplItemLeft" align="right" valign="top">using </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceutl_1_1meta_1_1detail.html#a835827cb3116483228d6f7f774b68970">utl::meta::detail::detected_or</a> = detector< Default, void, Op, Args... ></td></tr>
- <tr class="memdesc:a835827cb3116483228d6f7f774b68970"><td class="mdescLeft"> </td><td class="mdescRight">helper for detected_or_t <a href="namespaceutl_1_1meta_1_1detail.html#a835827cb3116483228d6f7f774b68970">More...</a><br /></td></tr>
- <tr class="separator:a835827cb3116483228d6f7f774b68970"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a5329219a9d2f195421a78d8e07873507"><td class="memTemplParams" colspan="2">template<template< typename... > class Op, typename... Args> </td></tr>
- <tr class="memitem:a5329219a9d2f195421a78d8e07873507"><td class="memTemplItemLeft" align="right" valign="top">using </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceutl_1_1meta.html#a5329219a9d2f195421a78d8e07873507">utl::meta::is_detected</a> = typename detail::detector< nat_, void, Op, Args... >::detected</td></tr>
- <tr class="separator:a5329219a9d2f195421a78d8e07873507"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:aa654a286b3bc8e6d8116ee1f57087110"><td class="memTemplParams" colspan="2">template<template< typename... > class Op, typename... Args> </td></tr>
- <tr class="memitem:aa654a286b3bc8e6d8116ee1f57087110"><td class="memTemplItemLeft" align="right" valign="top">using </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceutl_1_1meta.html#aa654a286b3bc8e6d8116ee1f57087110">utl::meta::detected_t</a> = eval< detail::detector< nat_, void, Op, Args... > ></td></tr>
- <tr class="separator:aa654a286b3bc8e6d8116ee1f57087110"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a8fd055bc6c6c3b1d551e9605aa35644c"><td class="memTemplParams" colspan="2">template<typename Default , template< typename... > class Op, typename... Args> </td></tr>
- <tr class="memitem:a8fd055bc6c6c3b1d551e9605aa35644c"><td class="memTemplItemLeft" align="right" valign="top">using </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceutl_1_1meta.html#a8fd055bc6c6c3b1d551e9605aa35644c">utl::meta::detected_or_t</a> = eval< detail::detected_or< Default, Op, Args... > ></td></tr>
- <tr class="separator:a8fd055bc6c6c3b1d551e9605aa35644c"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ad5224ef66e8f40efaaf3ad3d605dd629"><td class="memTemplParams" colspan="2">template<typename Expected , template< typename... > class Op, typename... Args> </td></tr>
- <tr class="memitem:ad5224ef66e8f40efaaf3ad3d605dd629"><td class="memTemplItemLeft" align="right" valign="top">using </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceutl_1_1meta.html#ad5224ef66e8f40efaaf3ad3d605dd629">utl::meta::is_detected_exact</a> = eval< same_< Expected, detected_t< Op, Args... > > ></td></tr>
- <tr class="separator:ad5224ef66e8f40efaaf3ad3d605dd629"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:afa24702fa15a1d0a8a05761c54b79def"><td class="memTemplParams" colspan="2">template<typename To , template< typename... > class Op, typename... Args> </td></tr>
- <tr class="memitem:afa24702fa15a1d0a8a05761c54b79def"><td class="memTemplItemLeft" align="right" valign="top">using </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceutl_1_1meta.html#afa24702fa15a1d0a8a05761c54b79def">utl::meta::is_detected_convertible</a> = eval< std::is_convertible< detected_t< Op, Args... >, To > ></td></tr>
- <tr class="separator:afa24702fa15a1d0a8a05761c54b79def"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a4f3184ccb8e8ba2a78e2d2e83a0b9885"><td class="memTemplParams" colspan="2">template<template< typename... > class Op, typename... Args> </td></tr>
- <tr class="memitem:a4f3184ccb8e8ba2a78e2d2e83a0b9885"><td class="memTemplItemLeft" align="right" valign="top">constexpr bool </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceutl_1_1meta.html#a4f3184ccb8e8ba2a78e2d2e83a0b9885">utl::meta::is_detected_v</a> = is_detected<Op, Args...>::value</td></tr>
- <tr class="memdesc:a4f3184ccb8e8ba2a78e2d2e83a0b9885"><td class="mdescLeft"> </td><td class="mdescRight">Detection predicate. <a href="namespaceutl_1_1meta.html#a4f3184ccb8e8ba2a78e2d2e83a0b9885">More...</a><br /></td></tr>
- <tr class="separator:a4f3184ccb8e8ba2a78e2d2e83a0b9885"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a960827a1d72083a511f8ea4ccc8beceb"><td class="memTemplParams" colspan="2">template<typename Expected , template< typename... > class Op, typename... Args> </td></tr>
- <tr class="memitem:a960827a1d72083a511f8ea4ccc8beceb"><td class="memTemplItemLeft" align="right" valign="top">constexpr bool </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceutl_1_1meta.html#a960827a1d72083a511f8ea4ccc8beceb">utl::meta::is_detected_exact_v</a> = is_detected_exact< Expected, Op, Args...>::value</td></tr>
- <tr class="memdesc:a960827a1d72083a511f8ea4ccc8beceb"><td class="mdescLeft"> </td><td class="mdescRight">evaluates to true if evaluation of Op<Args...> is <code>Expected</code> and to false if not <a href="namespaceutl_1_1meta.html#a960827a1d72083a511f8ea4ccc8beceb">More...</a><br /></td></tr>
- <tr class="separator:a960827a1d72083a511f8ea4ccc8beceb"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:acba521b528e775be4b37d2e481e0f138"><td class="memTemplParams" colspan="2">template<typename To , template< typename... > class Op, typename... Args> </td></tr>
- <tr class="memitem:acba521b528e775be4b37d2e481e0f138"><td class="memTemplItemLeft" align="right" valign="top">constexpr bool </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceutl_1_1meta.html#acba521b528e775be4b37d2e481e0f138">utl::meta::is_detected_convertible_v</a></td></tr>
- <tr class="separator:acba521b528e775be4b37d2e481e0f138"><td class="memSeparator" colspan="2"> </td></tr>
- </table>
- <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
- <div class="textblock"><p>Detection idiom based on WG21's N4502 [<a class="el" href="detection_8h.html#n4502">n4502</a> 1] from Walter E. Brown. </p>
- <p><a class="anchor" id="n4502"></a>[1]: www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4502.pdf</p>
- <p>Copyright (C) 2018-2019 Christos Choutouridis</p>
- <p>This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.</p>
- <p>This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.</p>
- <p>You should have received a copy of the GNU Lesser General Public License along with this program. If not, see <a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>. </p>
-
- <p class="definition">Definition in file <a class="el" href="detection_8h_source.html">detection.h</a>.</p>
- </div></div><!-- contents -->
- </div><!-- doc-content -->
- <!-- start footer part -->
- <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
- <ul>
- <li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_82754f54d9380477ef02477185c1f103.html">utl</a></li><li class="navelem"><a class="el" href="dir_c6a55aeb35dd92d90cdd3b5869981960.html">meta</a></li><li class="navelem"><a class="el" href="detection_8h.html">detection.h</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>
|