|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- <!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/concepts/iterators.h 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('iterators_8h_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">iterators.h</div> </div>
- </div><!--header-->
- <div class="contents">
- <a href="iterators_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> </div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#ifndef __utl_concepts_iterator_h__</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#define __utl_concepts_iterator_h__</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"> 24</span> <span class="preprocessor">#include <<a class="code" href="impl_8h.html">utl/core/impl.h</a>></span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include <<a class="code" href="defines_8h.html">utl/concepts/defines.h</a>></span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include <<a class="code" href="stl_8h.html">utl/concepts/stl.h</a>></span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> </div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="keyword">namespace </span><a class="code" href="namespaceutl.html">utl</a> {</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> </div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="preprocessor"> #if CXX_CONCEPTS</span></div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <span class="keyword">template</span> <<span class="keyword">class</span> I></div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <a class="code" href="group__concepts.html#gaf81026787698cd63592563ab8223062b">_utlConcept</a> <a class="code" href="namespaceutl.html#a25b4f216e3d7754b1c7088dd59504dee">WeaklyIncrementable</a> =</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  Semiregular<I> &&</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  requires(I i) {</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  { ++i } -> Same<I>&; <span class="comment">// not required to be equality preserving</span></div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  i++; <span class="comment">// not required to be equality preserving</span></div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  };</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <span class="preprocessor"> #else</span></div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="namespaceutl_1_1detail.html"> 44</a></span>  <span class="keyword">namespace </span>detail {</div><div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="namespaceutl_1_1detail.html#a50e7a46f910a83190bca5a58f67f1e2d"> 45</a></span>  <span class="keyword">template</span> <<span class="keyword">typename</span> I> <span class="keyword">using</span> <a class="code" href="namespaceutl_1_1detail.html#a50e7a46f910a83190bca5a58f67f1e2d">try_ppI</a> = decltype (++(std::declval<I>()));</div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="namespaceutl_1_1detail.html#a1371d13b3e8408cfc68e82b03ca9f3b0"> 46</a></span>  <span class="keyword">template</span> <<span class="keyword">typename</span> I> <span class="keyword">using</span> <a class="code" href="namespaceutl_1_1detail.html#a1371d13b3e8408cfc68e82b03ca9f3b0">try_Ipp</a> = decltype (std::declval<I>()++);</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  }</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keyword">template</span> <<span class="keyword">class</span> I></div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="namespaceutl.html#a25b4f216e3d7754b1c7088dd59504dee"> 49</a></span>  <a class="code" href="group__concepts.html#gaf81026787698cd63592563ab8223062b">_utlConcept</a> <a class="code" href="namespaceutl.html#a25b4f216e3d7754b1c7088dd59504dee">WeaklyIncrementable</a> =</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  Semiregular<I></div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  && Same<_ref_t<I>, <a class="code" href="namespaceutl_1_1meta.html#aa654a286b3bc8e6d8116ee1f57087110">meta::detected_t<detail::try_ppI, _ref_t<I></a>>></div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  && <a class="code" href="namespaceutl_1_1meta.html#a5329219a9d2f195421a78d8e07873507">meta::is_detected<detail::try_Ipp, _ref_t<I></a>>::value;</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span> <span class="preprocessor"> #endif</span></div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span> </div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span> <span class="preprocessor"> #if CXX_CONCEPTS</span></div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="keyword">template</span> <<span class="keyword">class</span> I></div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <a class="code" href="group__concepts.html#gaf81026787698cd63592563ab8223062b">_utlConcept</a> DeviceIterator =</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  requires(I i) {</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  { *i } -> <span class="keyword">auto</span>&&; <span class="comment">// Requires: i is dereferenceable</span></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>  WeaklyIncrementable<I>;</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span> </div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span> <span class="preprocessor"> #else</span></div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span> </div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span> <span class="preprocessor"> #endif</span></div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span> </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="l00070"></a><span class="lineno"> 70</span> <span class="preprocessor">#endif </span><span class="comment">/* __utl_concepts_iterator_h__ */</span><span class="preprocessor"></span></div><div class="ttc" id="group__concepts_html_gaf81026787698cd63592563ab8223062b"><div class="ttname"><a href="group__concepts.html#gaf81026787698cd63592563ab8223062b">_utlConcept</a></div><div class="ttdeci">#define _utlConcept</div><div class="ttdoc">utl concept keyword syntax wrapper </div><div class="ttdef"><b>Definition:</b> <a href="defines_8h_source.html#l00056">defines.h:56</a></div></div>
- <div class="ttc" id="namespaceutl_html_a25b4f216e3d7754b1c7088dd59504dee"><div class="ttname"><a href="namespaceutl.html#a25b4f216e3d7754b1c7088dd59504dee">utl::WeaklyIncrementable</a></div><div class="ttdeci">_utlConcept WeaklyIncrementable</div><div class="ttdef"><b>Definition:</b> <a href="iterators_8h_source.html#l00049">iterators.h:49</a></div></div>
- <div class="ttc" id="stl_8h_html"><div class="ttname"><a href="stl_8h.html">stl.h</a></div><div class="ttdoc">STL&#39;s Concepts. </div></div>
- <div class="ttc" id="defines_8h_html"><div class="ttname"><a href="defines_8h.html">defines.h</a></div><div class="ttdoc">Concepts defines. </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="namespaceutl_1_1detail_html_a1371d13b3e8408cfc68e82b03ca9f3b0"><div class="ttname"><a href="namespaceutl_1_1detail.html#a1371d13b3e8408cfc68e82b03ca9f3b0">utl::detail::try_Ipp</a></div><div class="ttdeci">decltype(std::declval< I >()++) try_Ipp</div><div class="ttdef"><b>Definition:</b> <a href="iterators_8h_source.html#l00046">iterators.h:46</a></div></div>
- <div class="ttc" id="namespaceutl_1_1detail_html_a50e7a46f910a83190bca5a58f67f1e2d"><div class="ttname"><a href="namespaceutl_1_1detail.html#a50e7a46f910a83190bca5a58f67f1e2d">utl::detail::try_ppI</a></div><div class="ttdeci">decltype(++(std::declval< I >())) try_ppI</div><div class="ttdef"><b>Definition:</b> <a href="iterators_8h_source.html#l00045">iterators.h:45</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="impl_8h_html"><div class="ttname"><a href="impl_8h.html">impl.h</a></div><div class="ttdoc">Implementation detail main forward header. </div></div>
- </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_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_1de759a74730efb26e16b92a33818a86.html">concepts</a></li><li class="navelem"><a class="el" href="iterators_8h.html">iterators.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>
|