2013-09-06 05:27:44 +00:00
< !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/html; charset=utf-8" / >
< script type = "text/javascript" >
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-43764535-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
< / script >
< title > basic_string — Sprout 1.0 documentation< / title >
< link rel = "stylesheet" href = "../../../_static/sphinxdoc.css" type = "text/css" / >
< link rel = "stylesheet" href = "../../../_static/pygments.css" type = "text/css" / >
< script type = "text/javascript" >
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../../',
VERSION: '1.0',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
};
< / script >
< script type = "text/javascript" src = "../../../_static/jquery.js" > < / script >
< script type = "text/javascript" src = "../../../_static/underscore.js" > < / script >
< script type = "text/javascript" src = "../../../_static/doctools.js" > < / script >
< link rel = "top" title = "Sprout 1.0 documentation" href = "../../../index.html" / >
< link rel = "up" title = "Sprout.String" href = "../index.html" / >
2013-09-08 10:28:17 +00:00
< link rel = "next" title = "operator=" href = "operator-assign.html" / >
2013-09-06 05:27:44 +00:00
< link rel = "prev" title = "assign" href = "../char_traits/assign-iterator.html" / >
< / head >
< body >
< div class = "related" >
< h3 > Navigation< / h3 >
< ul >
< li class = "right" style = "margin-right: 10px" >
< a href = "../../../genindex.html" title = "General Index"
accesskey="I">index< / a > < / li >
< li class = "right" >
2013-09-08 10:28:17 +00:00
< a href = "operator-assign.html" title = "operator="
2013-09-06 05:27:44 +00:00
accesskey="N">next< / a > |< / li >
< li class = "right" >
< a href = "../char_traits/assign-iterator.html" title = "assign"
accesskey="P">previous< / a > |< / li >
< li > < a href = "../../../index.html" > Sprout 1.0 documentation< / a > » < / li >
< li > < a href = "../../index.html" > Libraries< / a > » < / li >
< li > < a href = "../index.html" accesskey = "U" > Sprout.String< / a > » < / li >
< / ul >
< / div >
< div class = "sphinxsidebar" >
< div class = "sphinxsidebarwrapper" >
< h3 > < a href = "../../../index.html" > Table Of Contents< / a > < / h3 >
< ul >
< li > < a class = "reference internal" href = "#" > basic_string< / a > < ul >
< li > < a class = "reference internal" href = "#interface" > Interface< / a > < / li >
< li > < a class = "reference internal" href = "#description" > Description< / a > < ul >
< li > < a class = "reference internal" href = "#member-types" > Member types< / a > < / li >
< li > < a class = "reference internal" href = "#member-functions" > Member functions< / a > < ul >
< li > < a class = "reference internal" href = "#construct-copy-destroy" > construct/copy/destroy< / a > < / li >
< li > < a class = "reference internal" href = "#iterators" > iterators< / a > < / li >
< li > < a class = "reference internal" href = "#capacity" > capacity< / a > < / li >
< li > < a class = "reference internal" href = "#element-access" > element access< / a > < / li >
< li > < a class = "reference internal" href = "#modifiers" > modifiers< / a > < / li >
< li > < a class = "reference internal" href = "#string-operations" > string operations< / a > < / li >
< li > < a class = "reference internal" href = "#conversions" > conversions< / a > < / li >
< li > < a class = "reference internal" href = "#construct-copy-destroy-for-string-iterator" > construct/copy/destroy (for string iterator)< / a > < / li >
< li > < a class = "reference internal" href = "#modifiers-for-string-iterator" > modifiers (for string iterator)< / a > < / li >
< li > < a class = "reference internal" href = "#string-operations-for-string-iterator" > string operations (for string iterator)< / a > < / li >
< / ul >
< / li >
< / ul >
< / li >
< li > < a class = "reference internal" href = "#header" > Header< / a > < / li >
< li > < a class = "reference internal" href = "#interface-of-all" > Interface of all< / a > < / li >
< / ul >
< / li >
< / ul >
< h4 > Previous topic< / h4 >
< p class = "topless" > < a href = "../char_traits/assign-iterator.html"
title="previous chapter">assign< / a > < / p >
< h4 > Next topic< / h4 >
2013-09-08 10:28:17 +00:00
< p class = "topless" > < a href = "operator-assign.html"
title="next chapter">operator=< / a > < / p >
2013-09-06 05:27:44 +00:00
< h3 > This Page< / h3 >
< ul class = "this-page-menu" >
< li > < a href = "../../../_sources/libs/string/basic_string/index.txt"
rel="nofollow">Show Source< / a > < / li >
< / ul >
< div id = "searchbox" style = "display: none" >
< h3 > Quick search< / h3 >
< form class = "search" action = "../../../search.html" method = "get" >
< input type = "text" name = "q" / >
< input type = "submit" value = "Go" / >
< input type = "hidden" name = "check_keywords" value = "yes" / >
< input type = "hidden" name = "area" value = "default" / >
< / form >
< p class = "searchtip" style = "font-size: 90%" >
Enter search terms or a module, class or function name.
< / p >
< / div >
< script type = "text/javascript" > $ ( '#searchbox' ) . show ( 0 ) ; < / script >
< / div >
< / div >
< div class = "document" >
< div class = "documentwrapper" >
< div class = "bodywrapper" >
< div class = "body" >
< div class = "section" id = "basic-string" >
< h1 > basic_string< a class = "headerlink" href = "#basic-string" title = "Permalink to this headline" > ¶< / a > < / h1 >
< div class = "toctree-wrapper compound" >
< / div >
< div class = "section" id = "interface" >
< h2 > Interface< a class = "headerlink" href = "#interface" title = "Permalink to this headline" > ¶< / a > < / h2 >
< div class = "highlight-c++" > < div class = "highlight" > < pre > < span class = "k" > template< / span > < span class = "o" > < < / span > < span class = "k" > typename< / span > < span class = "n" > T< / span > < span class = "p" > ,< / span > < span class = "n" > std< / span > < span class = "o" > ::< / span > < span class = "n" > size_t< / span > < span class = "n" > N< / span > < span class = "p" > ,< / span > < span class = "k" > typename< / span > < span class = "n" > Traits< / span > < span class = "o" > =< / span > < span class = "n" > sprout< / span > < span class = "o" > ::< / span > < span class = "n" > char_traits< / span > < span class = "o" > < < / span > < span class = "n" > T< / span > < span class = "o" > > < / span > < span class = "o" > > < / span >
< span class = "k" > class< / span > < span class = "nc" > basic_string< / span > < span class = "p" > ;< / span >
< / pre > < / div >
< / div >
< / div >
< div class = "section" id = "description" >
< h2 > Description< a class = "headerlink" href = "#description" title = "Permalink to this headline" > ¶< / a > < / h2 >
< div class = "section" id = "member-types" >
< h3 > Member types< a class = "headerlink" href = "#member-types" title = "Permalink to this headline" > ¶< / a > < / h3 >
< table border = "1" class = "docutils" >
< colgroup >
< col width = "25%" / >
< col width = "50%" / >
< col width = "25%" / >
< / colgroup >
< thead valign = "bottom" >
< tr class = "row-odd" > < th class = "head" > type< / th >
< th class = "head" > definition< / th >
< th class = "head" > note< / th >
< / tr >
< / thead >
< tbody valign = "top" >
< tr class = "row-even" > < td > traits_type< / td >
< td > Traits< / td >
< td > < / td >
< / tr >
< tr class = "row-odd" > < td > value_type< / td >
< td > Traits::char_type< / td >
< td > < / td >
< / tr >
< tr class = "row-even" > < td > size_type< / td >
< td > std::size_t< / td >
< td > < / td >
< / tr >
< tr class = "row-odd" > < td > difference_type< / td >
< td > std::ptrdiff_t< / td >
< td > < / td >
< / tr >
< tr class = "row-even" > < td > reference< / td >
< td > value_type& < / td >
< td > < / td >
< / tr >
< tr class = "row-odd" > < td > const_reference< / td >
< td > value_type const& < / td >
< td > < / td >
< / tr >
< tr class = "row-even" > < td > pointer< / td >
< td > value_type*< / td >
< td > < / td >
< / tr >
< tr class = "row-odd" > < td > const_pointer< / td >
< td > value_type const*< / td >
< td > < / td >
< / tr >
< tr class = "row-even" > < td > iterator< / td >
< td > < strong > ConstexprRandomAccessIterator< / strong > < / td >
< td > convertible to const_iterator,
convertible to pointer< / td >
< / tr >
< tr class = "row-odd" > < td > const_iterator< / td >
< td > < strong > ConstexprRandomAccessIterator< / strong > < / td >
< td > convertible to const_pointer< / td >
< / tr >
< tr class = "row-even" > < td > reverse_iterator< / td >
< td > sprout::reverse_iterator< iterator> ,
< strong > ConstexprRandomAccessIterator< / strong > < / td >
< td > < / td >
< / tr >
< tr class = "row-odd" > < td > const_reverse_iterator< / td >
< td > sprout::reverse_iterator< const_iterator> ,
< strong > ConstexprRandomAccessIterator< / strong > < / td >
< td > < / td >
< / tr >
< / tbody >
< / table >
< / div >
< div class = "section" id = "member-functions" >
< h3 > Member functions< a class = "headerlink" href = "#member-functions" title = "Permalink to this headline" > ¶< / a > < / h3 >
< div class = "section" id = "construct-copy-destroy" >
< h4 > construct/copy/destroy< a class = "headerlink" href = "#construct-copy-destroy" title = "Permalink to this headline" > ¶< / a > < / h4 >
< table border = "1" class = "docutils" >
< colgroup >
< col width = "34%" / >
< col width = "66%" / >
< / colgroup >
< thead valign = "bottom" >
< tr class = "row-odd" > < th class = "head" > function< / th >
< th class = "head" > < / th >
< / tr >
< / thead >
< tbody valign = "top" >
< tr class = "row-even" > < td > < tt class = "xref doc docutils literal" > < span class = "pre" > (constructor)< / span > < / tt > < / td >
< td > < / td >
< / tr >
2013-09-08 10:28:17 +00:00
< tr class = "row-odd" > < td > < a class = "reference internal" href = "operator-assign.html" > < em > operator=< / em > < / a > < / td >
2013-09-06 05:27:44 +00:00
< td > < / td >
< / tr >
< / tbody >
< / table >
< / div >
< div class = "section" id = "iterators" >
< h4 > iterators< a class = "headerlink" href = "#iterators" title = "Permalink to this headline" > ¶< / a > < / h4 >
< table border = "1" class = "docutils" >
< colgroup >
< col width = "34%" / >
< col width = "66%" / >
< / colgroup >
< thead valign = "bottom" >
< tr class = "row-odd" > < th class = "head" > function< / th >
< th class = "head" > < / th >
< / tr >
< / thead >
< tbody valign = "top" >
2013-09-06 07:46:03 +00:00
< tr class = "row-even" > < td > < a class = "reference internal" href = "begin.html" > < em > begin< / em > < / a > < / td >
2013-09-06 05:27:44 +00:00
< td > < / td >
< / tr >
2013-09-06 07:46:03 +00:00
< tr class = "row-odd" > < td > < a class = "reference internal" href = "end.html" > < em > end< / em > < / a > < / td >
2013-09-06 05:27:44 +00:00
< td > < / td >
< / tr >
2013-09-06 07:46:03 +00:00
< tr class = "row-even" > < td > < a class = "reference internal" href = "rbegin.html" > < em > rbegin< / em > < / a > < / td >
2013-09-06 05:27:44 +00:00
< td > < / td >
< / tr >
2013-09-06 07:46:03 +00:00
< tr class = "row-odd" > < td > < a class = "reference internal" href = "rend.html" > < em > rend< / em > < / a > < / td >
2013-09-06 05:27:44 +00:00
< td > < / td >
< / tr >
2013-09-06 07:46:03 +00:00
< tr class = "row-even" > < td > < a class = "reference internal" href = "cbegin.html" > < em > cbegin< / em > < / a > < / td >
2013-09-06 05:27:44 +00:00
< td > < / td >
< / tr >
2013-09-06 07:46:03 +00:00
< tr class = "row-odd" > < td > < a class = "reference internal" href = "cend.html" > < em > cend< / em > < / a > < / td >
2013-09-06 05:27:44 +00:00
< td > < / td >
< / tr >
2013-09-06 07:46:03 +00:00
< tr class = "row-even" > < td > < a class = "reference internal" href = "crbegin.html" > < em > crbegin< / em > < / a > < / td >
2013-09-06 05:27:44 +00:00
< td > < / td >
< / tr >
2013-09-06 07:46:03 +00:00
< tr class = "row-odd" > < td > < a class = "reference internal" href = "crend.html" > < em > crend< / em > < / a > < / td >
2013-09-06 05:27:44 +00:00
< td > < / td >
< / tr >
< / tbody >
< / table >
< / div >
< div class = "section" id = "capacity" >
< h4 > capacity< a class = "headerlink" href = "#capacity" title = "Permalink to this headline" > ¶< / a > < / h4 >
< table border = "1" class = "docutils" >
< colgroup >
< col width = "34%" / >
< col width = "66%" / >
< / colgroup >
< thead valign = "bottom" >
< tr class = "row-odd" > < th class = "head" > function< / th >
< th class = "head" > < / th >
< / tr >
< / thead >
< tbody valign = "top" >
2013-09-06 07:46:03 +00:00
< tr class = "row-even" > < td > < a class = "reference internal" href = "size.html" > < em > size< / em > < / a > < / td >
2013-09-06 05:27:44 +00:00
< td > < / td >
< / tr >
2013-09-08 09:59:50 +00:00
< tr class = "row-odd" > < td > < a class = "reference internal" href = "length.html" > < em > length< / em > < / a > < / td >
2013-09-06 05:27:44 +00:00
< td > < / td >
< / tr >
2013-09-06 07:46:03 +00:00
< tr class = "row-even" > < td > < a class = "reference internal" href = "max_size.html" > < em > max_size< / em > < / a > < / td >
2013-09-06 05:27:44 +00:00
< td > < / td >
< / tr >
2013-09-08 09:59:50 +00:00
< tr class = "row-odd" > < td > < a class = "reference internal" href = "resize.html" > < em > resize< / em > < / a > < / td >
2013-09-06 05:27:44 +00:00
< td > < / td >
< / tr >
2013-09-08 09:59:50 +00:00
< tr class = "row-even" > < td > < a class = "reference internal" href = "clear.html" > < em > clear< / em > < / a > < / td >
2013-09-06 05:27:44 +00:00
< td > < / td >
< / tr >
2013-09-06 07:46:03 +00:00
< tr class = "row-odd" > < td > < a class = "reference internal" href = "empty.html" > < em > empty< / em > < / a > < / td >
2013-09-06 05:27:44 +00:00
< td > < / td >
< / tr >
< / tbody >
< / table >
< / div >
< div class = "section" id = "element-access" >
< h4 > element access< a class = "headerlink" href = "#element-access" title = "Permalink to this headline" > ¶< / a > < / h4 >
< table border = "1" class = "docutils" >
< colgroup >
< col width = "34%" / >
< col width = "66%" / >
< / colgroup >
< thead valign = "bottom" >
< tr class = "row-odd" > < th class = "head" > function< / th >
< th class = "head" > < / th >
< / tr >
< / thead >
< tbody valign = "top" >
2013-09-06 07:46:03 +00:00
< tr class = "row-even" > < td > < a class = "reference internal" href = "operator-subscript.html" > < em > operator[]< / em > < / a > < / td >
2013-09-06 05:27:44 +00:00
< td > < / td >
< / tr >
2013-09-06 07:46:03 +00:00
< tr class = "row-odd" > < td > < a class = "reference internal" href = "at.html" > < em > at< / em > < / a > < / td >
2013-09-06 05:27:44 +00:00
< td > < / td >
< / tr >
2013-09-06 07:46:03 +00:00
< tr class = "row-even" > < td > < a class = "reference internal" href = "front.html" > < em > front< / em > < / a > < / td >
2013-09-06 05:27:44 +00:00
< td > < / td >
< / tr >
2013-09-06 07:46:03 +00:00
< tr class = "row-odd" > < td > < a class = "reference internal" href = "back.html" > < em > back< / em > < / a > < / td >
2013-09-06 05:27:44 +00:00
< td > < / td >
< / tr >
< / tbody >
< / table >
< / div >
< div class = "section" id = "modifiers" >
< h4 > modifiers< a class = "headerlink" href = "#modifiers" title = "Permalink to this headline" > ¶< / a > < / h4 >
< table border = "1" class = "docutils" >
< colgroup >
< col width = "34%" / >
< col width = "66%" / >
< / colgroup >
< thead valign = "bottom" >
< tr class = "row-odd" > < th class = "head" > function< / th >
< th class = "head" > < / th >
< / tr >
< / thead >
< tbody valign = "top" >
2013-09-08 09:59:50 +00:00
< tr class = "row-even" > < td > < a class = "reference internal" href = "assign.html" > < em > assign< / em > < / a > < / td >
2013-09-06 05:27:44 +00:00
< td > < / td >
< / tr >
2013-09-06 07:46:03 +00:00
< tr class = "row-odd" > < td > < a class = "reference internal" href = "swap.html" > < em > swap< / em > < / a > < / td >
2013-09-06 05:27:44 +00:00
< td > < / td >
< / tr >
< / tbody >
< / table >
< / div >
< div class = "section" id = "string-operations" >
< h4 > string operations< a class = "headerlink" href = "#string-operations" title = "Permalink to this headline" > ¶< / a > < / h4 >
< table border = "1" class = "docutils" >
< colgroup >
< col width = "43%" / >
< col width = "57%" / >
< / colgroup >
< thead valign = "bottom" >
< tr class = "row-odd" > < th class = "head" > function< / th >
< th class = "head" > < / th >
< / tr >
< / thead >
< tbody valign = "top" >
2013-09-06 07:46:03 +00:00
< tr class = "row-even" > < td > < a class = "reference internal" href = "data.html" > < em > data< / em > < / a > < / td >
2013-09-06 05:27:44 +00:00
< td > < / td >
< / tr >
2013-09-06 07:46:03 +00:00
< tr class = "row-odd" > < td > < a class = "reference internal" href = "c_array.html" > < em > c_array< / em > < / a > < / td >
2013-09-06 05:27:44 +00:00
< td > < / td >
< / tr >
< tr class = "row-even" > < td > < tt class = "xref doc docutils literal" > < span class = "pre" > find< / span > < / tt > < / td >
< td > < / td >
< / tr >
< tr class = "row-odd" > < td > < tt class = "xref doc docutils literal" > < span class = "pre" > rfind< / span > < / tt > < / td >
< td > < / td >
< / tr >
< tr class = "row-even" > < td > < tt class = "xref doc docutils literal" > < span class = "pre" > find_first_of< / span > < / tt > < / td >
< td > < / td >
< / tr >
< tr class = "row-odd" > < td > < tt class = "xref doc docutils literal" > < span class = "pre" > find_last_of< / span > < / tt > < / td >
< td > < / td >
< / tr >
< tr class = "row-even" > < td > < tt class = "xref doc docutils literal" > < span class = "pre" > find_first_not_of< / span > < / tt > < / td >
< td > < / td >
< / tr >
< tr class = "row-odd" > < td > < tt class = "xref doc docutils literal" > < span class = "pre" > find_last_not_of< / span > < / tt > < / td >
< td > < / td >
< / tr >
2013-09-08 13:18:51 +00:00
< tr class = "row-even" > < td > < a class = "reference internal" href = "substr.html" > < em > substr< / em > < / a > < / td >
2013-09-06 05:27:44 +00:00
< td > < / td >
< / tr >
< tr class = "row-odd" > < td > < tt class = "xref doc docutils literal" > < span class = "pre" > compare< / span > < / tt > < / td >
< td > < / td >
< / tr >
< / tbody >
< / table >
< / div >
< div class = "section" id = "conversions" >
< h4 > conversions< a class = "headerlink" href = "#conversions" title = "Permalink to this headline" > ¶< / a > < / h4 >
< table border = "1" class = "docutils" >
< colgroup >
< col width = "50%" / >
< col width = "50%" / >
< / colgroup >
< thead valign = "bottom" >
< tr class = "row-odd" > < th class = "head" > function< / th >
< th class = "head" > < / th >
< / tr >
< / thead >
< tbody valign = "top" >
2013-09-08 13:18:51 +00:00
< tr class = "row-even" > < td > < a class = "reference internal" href = "operator-std-basic_string.html" > < em > operator std::basic_string< / em > < / a > < / td >
2013-09-06 05:27:44 +00:00
< td > < / td >
< / tr >
< / tbody >
< / table >
< / div >
< div class = "section" id = "construct-copy-destroy-for-string-iterator" >
< h4 > construct/copy/destroy (for string iterator)< a class = "headerlink" href = "#construct-copy-destroy-for-string-iterator" title = "Permalink to this headline" > ¶< / a > < / h4 >
< table border = "1" class = "docutils" >
< colgroup >
< col width = "43%" / >
< col width = "57%" / >
< / colgroup >
< thead valign = "bottom" >
< tr class = "row-odd" > < th class = "head" > function< / th >
< th class = "head" > < / th >
< / tr >
< / thead >
< tbody valign = "top" >
2013-09-08 13:18:51 +00:00
< tr class = "row-even" > < td > < a class = "reference internal" href = "operator-assign-iterator.html" > < em > operator=< / em > < / a > < / td >
2013-09-06 05:27:44 +00:00
< td > < / td >
< / tr >
< / tbody >
< / table >
< / div >
< div class = "section" id = "modifiers-for-string-iterator" >
< h4 > modifiers (for string iterator)< a class = "headerlink" href = "#modifiers-for-string-iterator" title = "Permalink to this headline" > ¶< / a > < / h4 >
< table border = "1" class = "docutils" >
< colgroup >
< col width = "34%" / >
< col width = "66%" / >
< / colgroup >
< thead valign = "bottom" >
< tr class = "row-odd" > < th class = "head" > function< / th >
< th class = "head" > < / th >
< / tr >
< / thead >
< tbody valign = "top" >
2013-09-08 13:18:51 +00:00
< tr class = "row-even" > < td > < a class = "reference internal" href = "assign-iterator.html" > < em > assign< / em > < / a > < / td >
2013-09-06 05:27:44 +00:00
< td > < / td >
< / tr >
< / tbody >
< / table >
< / div >
< div class = "section" id = "string-operations-for-string-iterator" >
< h4 > string operations (for string iterator)< a class = "headerlink" href = "#string-operations-for-string-iterator" title = "Permalink to this headline" > ¶< / a > < / h4 >
< table border = "1" class = "docutils" >
< colgroup >
< col width = "43%" / >
< col width = "57%" / >
< / colgroup >
< thead valign = "bottom" >
< tr class = "row-odd" > < th class = "head" > function< / th >
< th class = "head" > < / th >
< / tr >
< / thead >
< tbody valign = "top" >
< tr class = "row-even" > < td > < tt class = "xref doc docutils literal" > < span class = "pre" > find< / span > < / tt > < / td >
< td > < / td >
< / tr >
< tr class = "row-odd" > < td > < tt class = "xref doc docutils literal" > < span class = "pre" > rfind< / span > < / tt > < / td >
< td > < / td >
< / tr >
< tr class = "row-even" > < td > < tt class = "xref doc docutils literal" > < span class = "pre" > find_first_of< / span > < / tt > < / td >
< td > < / td >
< / tr >
< tr class = "row-odd" > < td > < tt class = "xref doc docutils literal" > < span class = "pre" > find_last_of< / span > < / tt > < / td >
< td > < / td >
< / tr >
< tr class = "row-even" > < td > < tt class = "xref doc docutils literal" > < span class = "pre" > find_first_not_of< / span > < / tt > < / td >
< td > < / td >
< / tr >
< tr class = "row-odd" > < td > < tt class = "xref doc docutils literal" > < span class = "pre" > find_last_not_of< / span > < / tt > < / td >
< td > < / td >
< / tr >
< tr class = "row-even" > < td > < tt class = "xref doc docutils literal" > < span class = "pre" > compare< / span > < / tt > < / td >
< td > < / td >
< / tr >
< / tbody >
< / table >
< / div >
< / div >
< / div >
< div class = "section" id = "header" >
< h2 > Header< a class = "headerlink" href = "#header" title = "Permalink to this headline" > ¶< / a > < / h2 >
< p > < tt class = "docutils literal" > < span class = "pre" > sprout/string/string.hpp< / span > < / tt > < / p >
< p > Convenience header: < tt class = "docutils literal" > < span class = "pre" > sprout/string.hpp< / span > < / tt > < / p >
< / div >
< div class = "section" id = "interface-of-all" >
< h2 > Interface of all< a class = "headerlink" href = "#interface-of-all" title = "Permalink to this headline" > ¶< / a > < / h2 >
< div class = "highlight-c++" > < div class = "highlight" > < pre > < span class = "k" > template< / span > < span class = "o" > < < / span > < span class = "k" > typename< / span > < span class = "n" > T< / span > < span class = "p" > ,< / span > < span class = "n" > std< / span > < span class = "o" > ::< / span > < span class = "n" > size_t< / span > < span class = "n" > N< / span > < span class = "p" > ,< / span > < span class = "k" > typename< / span > < span class = "n" > Traits< / span > < span class = "o" > =< / span > < span class = "n" > sprout< / span > < span class = "o" > ::< / span > < span class = "n" > char_traits< / span > < span class = "o" > < < / span > < span class = "n" > T< / span > < span class = "o" > > < / span > < span class = "o" > > < / span >
< span class = "k" > class< / span > < span class = "nc" > basic_string< / span > < span class = "p" > {< / span >
< span class = "c1" > // types:< / span >
< span class = "k" > typedef< / span > < span class = "n" > Traits< / span > < span class = "n" > traits_type< / span > < span class = "p" > ;< / span >
< span class = "k" > typedef< / span > < span class = "k" > typename< / span > < span class = "n" > Traits< / span > < span class = "o" > ::< / span > < span class = "n" > char_type< / span > < span class = "n" > value_type< / span > < span class = "p" > ;< / span >
< span class = "k" > typedef< / span > < span class = "n" > std< / span > < span class = "o" > ::< / span > < span class = "n" > size_t< / span > < span class = "n" > size_type< / span > < span class = "p" > ;< / span >
< span class = "k" > typedef< / span > < span class = "n" > std< / span > < span class = "o" > ::< / span > < span class = "n" > ptrdiff_t< / span > < span class = "n" > difference_type< / span > < span class = "p" > ;< / span >
< span class = "k" > typedef< / span > < span class = "n" > value_type< / span > < span class = "o" > & < / span > < span class = "n" > reference< / span > < span class = "p" > ;< / span >
< span class = "k" > typedef< / span > < span class = "n" > value_type< / span > < span class = "k" > const< / span > < span class = "o" > & < / span > < span class = "n" > const_reference< / span > < span class = "p" > ;< / span >
< span class = "k" > typedef< / span > < span class = "n" > value_type< / span > < span class = "o" > *< / span > < span class = "n" > pointer< / span > < span class = "p" > ;< / span >
< span class = "k" > typedef< / span > < span class = "n" > value_type< / span > < span class = "k" > const< / span > < span class = "o" > *< / span > < span class = "n" > const_pointer< / span > < span class = "p" > ;< / span >
< span class = "k" > typedef< / span > < span class = "cm" > /*implementation-defined*/< / span > < span class = "n" > iterator< / span > < span class = "p" > ;< / span >
< span class = "k" > typedef< / span > < span class = "cm" > /*implementation-defined*/< / span > < span class = "n" > const_iterator< / span > < span class = "p" > ;< / span >
< span class = "k" > typedef< / span > < span class = "n" > sprout< / span > < span class = "o" > ::< / span > < span class = "n" > reverse_iterator< / span > < span class = "o" > < < / span > < span class = "n" > iterator< / span > < span class = "o" > > < / span > < span class = "n" > reverse_iterator< / span > < span class = "p" > ;< / span >
< span class = "k" > typedef< / span > < span class = "n" > sprout< / span > < span class = "o" > ::< / span > < span class = "n" > reverse_iterator< / span > < span class = "o" > < < / span > < span class = "n" > const_iterator< / span > < span class = "o" > > < / span > < span class = "n" > const_reverse_iterator< / span > < span class = "p" > ;< / span >
< span class = "c1" > // constants:< / span >
< span class = "n" > SPROUT_STATIC_CONSTEXPR< / span > < span class = "n" > size_type< / span > < span class = "n" > npos< / span > < span class = "o" > =< / span > < span class = "o" > -< / span > < span class = "mi" > 1< / span > < span class = "p" > ;< / span >
< span class = "n" > SPROUT_STATIC_CONSTEXPR< / span > < span class = "n" > size_type< / span > < span class = "n" > static_size< / span > < span class = "o" > =< / span > < span class = "n" > N< / span > < span class = "p" > ;< / span >
< span class = "c1" > // construct/copy/destroy:< / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > basic_string< / span > < span class = "p" > ()< / span > < span class = "o" > =< / span > < span class = "k" > default< / span > < span class = "p" > ;< / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > basic_string< / span > < span class = "p" > (< / span > < span class = "n" > basic_string< / span > < span class = "k" > const< / span > < span class = "o" > & < / span > < span class = "p" > )< / span > < span class = "o" > =< / span > < span class = "k" > default< / span > < span class = "p" > ;< / span >
< span class = "k" > template< / span > < span class = "o" > < < / span > < span class = "n" > std< / span > < span class = "o" > ::< / span > < span class = "n" > size_t< / span > < span class = "n" > N2< / span > < span class = "p" > ,< / span > < span class = "k" > typename< / span > < span class = "n" > Enable< / span > < span class = "o" > =< / span > < span class = "k" > typename< / span > < span class = "n" > std< / span > < span class = "o" > ::< / span > < span class = "n" > enable_if< / span > < span class = "o" > < < / span > < span class = "p" > (< / span > < span class = "n" > N2< / span > < span class = "o" > < < / span > < span class = "n" > N< / span > < span class = "p" > )< / span > < span class = "o" > > ::< / span > < span class = "n" > type< / span > < span class = "o" > > < / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > basic_string< / span > < span class = "p" > (< / span > < span class = "n" > basic_string< / span > < span class = "o" > < < / span > < span class = "n" > T< / span > < span class = "p" > ,< / span > < span class = "n" > N2< / span > < span class = "p" > ,< / span > < span class = "n" > Traits< / span > < span class = "o" > > < / span > < span class = "k" > const< / span > < span class = "o" > & < / span > < span class = "n" > str< / span > < span class = "p" > );< / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > basic_string< / span > < span class = "p" > (< / span > < span class = "n" > basic_string< / span > < span class = "k" > const< / span > < span class = "o" > & < / span > < span class = "n" > str< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > pos< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > n< / span > < span class = "o" > =< / span > < span class = "n" > npos< / span > < span class = "p" > );< / span >
< span class = "k" > template< / span > < span class = "o" > < < / span > < span class = "n" > std< / span > < span class = "o" > ::< / span > < span class = "n" > size_t< / span > < span class = "n" > N2< / span > < span class = "p" > ,< / span > < span class = "k" > typename< / span > < span class = "n" > Enable< / span > < span class = "o" > =< / span > < span class = "k" > typename< / span > < span class = "n" > std< / span > < span class = "o" > ::< / span > < span class = "n" > enable_if< / span > < span class = "o" > < < / span > < span class = "p" > (< / span > < span class = "n" > N2< / span > < span class = "o" > < < / span > < span class = "n" > N< / span > < span class = "p" > )< / span > < span class = "o" > > ::< / span > < span class = "n" > type< / span > < span class = "o" > > < / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > basic_string< / span > < span class = "p" > (< / span > < span class = "n" > basic_string< / span > < span class = "o" > < < / span > < span class = "n" > T< / span > < span class = "p" > ,< / span > < span class = "n" > N2< / span > < span class = "p" > ,< / span > < span class = "n" > Traits< / span > < span class = "o" > > < / span > < span class = "k" > const< / span > < span class = "o" > & < / span > < span class = "n" > str< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > pos< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > n< / span > < span class = "o" > =< / span > < span class = "n" > npos< / span > < span class = "p" > );< / span >
< span class = "k" > template< / span > < span class = "o" > < < / span > < span class = "n" > std< / span > < span class = "o" > ::< / span > < span class = "n" > size_t< / span > < span class = "n" > N2< / span > < span class = "p" > ,< / span > < span class = "k" > typename< / span > < span class = "n" > Enable< / span > < span class = "o" > =< / span > < span class = "k" > typename< / span > < span class = "n" > std< / span > < span class = "o" > ::< / span > < span class = "n" > enable_if< / span > < span class = "o" > < < / span > < span class = "p" > (< / span > < span class = "n" > N2< / span > < span class = "o" > -< / span > < span class = "mi" > 1< / span > < span class = "o" > < =< / span > < span class = "n" > N< / span > < span class = "p" > )< / span > < span class = "o" > > ::< / span > < span class = "n" > type< / span > < span class = "o" > > < / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > basic_string< / span > < span class = "p" > (< / span > < span class = "n" > T< / span > < span class = "k" > const< / span > < span class = "p" > (< / span > < span class = "o" > & < / span > < span class = "n" > arr< / span > < span class = "p" > )[< / span > < span class = "n" > N2< / span > < span class = "p" > ]);< / span >
< span class = "k" > template< / span > < span class = "o" > < < / span > < span class = "n" > std< / span > < span class = "o" > ::< / span > < span class = "n" > size_t< / span > < span class = "n" > N2< / span > < span class = "p" > ,< / span > < span class = "k" > typename< / span > < span class = "n" > Enable< / span > < span class = "o" > =< / span > < span class = "k" > typename< / span > < span class = "n" > std< / span > < span class = "o" > ::< / span > < span class = "n" > enable_if< / span > < span class = "o" > < < / span > < span class = "p" > (< / span > < span class = "n" > N2< / span > < span class = "o" > -< / span > < span class = "mi" > 1< / span > < span class = "o" > < =< / span > < span class = "n" > N< / span > < span class = "p" > )< / span > < span class = "o" > > ::< / span > < span class = "n" > type< / span > < span class = "o" > > < / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > basic_string< / span > < span class = "p" > (< / span > < span class = "n" > T< / span > < span class = "k" > const< / span > < span class = "p" > (< / span > < span class = "o" > & < / span > < span class = "n" > arr< / span > < span class = "p" > )[< / span > < span class = "n" > N2< / span > < span class = "p" > ],< / span > < span class = "n" > size_type< / span > < span class = "n" > n< / span > < span class = "p" > );< / span >
< span class = "k" > explicit< / span > < span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > basic_string< / span > < span class = "p" > (< / span > < span class = "n" > value_type< / span > < span class = "k" > const< / span > < span class = "o" > *< / span > < span class = "n" > s< / span > < span class = "p" > );< / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > basic_string< / span > < span class = "p" > (< / span > < span class = "n" > value_type< / span > < span class = "k" > const< / span > < span class = "o" > *< / span > < span class = "n" > s< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > n< / span > < span class = "p" > );< / span >
< span class = "k" > template< / span > < span class = "o" > < < / span > < span class = "k" > typename< / span > < span class = "n" > InputIterator< / span > < span class = "o" > > < / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > basic_string< / span > < span class = "p" > (< / span > < span class = "n" > InputIterator< / span > < span class = "n" > first< / span > < span class = "p" > ,< / span > < span class = "n" > InputIterator< / span > < span class = "n" > last< / span > < span class = "p" > );< / span >
< span class = "n" > basic_string< / span > < span class = "p" > (< / span > < span class = "n" > std< / span > < span class = "o" > ::< / span > < span class = "n" > initializer_list< / span > < span class = "o" > < < / span > < span class = "n" > value_type< / span > < span class = "o" > > < / span > < span class = "n" > il< / span > < span class = "p" > );< / span >
< span class = "n" > basic_string< / span > < span class = "o" > & < / span > < span class = "k" > operator< / span > < span class = "o" > =< / span > < span class = "p" > (< / span > < span class = "n" > basic_string< / span > < span class = "k" > const< / span > < span class = "o" > & < / span > < span class = "n" > rhs< / span > < span class = "p" > );< / span >
< span class = "k" > template< / span > < span class = "o" > < < / span > < span class = "n" > std< / span > < span class = "o" > ::< / span > < span class = "n" > size_t< / span > < span class = "n" > N2< / span > < span class = "p" > ,< / span > < span class = "k" > typename< / span > < span class = "n" > Enable< / span > < span class = "o" > =< / span > < span class = "k" > typename< / span > < span class = "n" > std< / span > < span class = "o" > ::< / span > < span class = "n" > enable_if< / span > < span class = "o" > < < / span > < span class = "p" > (< / span > < span class = "n" > N2< / span > < span class = "o" > !=< / span > < span class = "n" > N< / span > < span class = "p" > )< / span > < span class = "o" > > ::< / span > < span class = "n" > type< / span > < span class = "o" > > < / span >
< span class = "n" > basic_string< / span > < span class = "o" > & < / span > < span class = "k" > operator< / span > < span class = "o" > =< / span > < span class = "p" > (< / span > < span class = "n" > basic_string< / span > < span class = "o" > < < / span > < span class = "n" > T< / span > < span class = "p" > ,< / span > < span class = "n" > N2< / span > < span class = "p" > ,< / span > < span class = "n" > Traits< / span > < span class = "o" > > < / span > < span class = "k" > const< / span > < span class = "o" > & < / span > < span class = "n" > rhs< / span > < span class = "p" > );< / span >
< span class = "n" > basic_string< / span > < span class = "o" > & < / span > < span class = "k" > operator< / span > < span class = "o" > =< / span > < span class = "p" > (< / span > < span class = "n" > value_type< / span > < span class = "k" > const< / span > < span class = "o" > *< / span > < span class = "n" > rhs< / span > < span class = "p" > );< / span >
< span class = "n" > basic_string< / span > < span class = "o" > & < / span > < span class = "k" > operator< / span > < span class = "o" > =< / span > < span class = "p" > (< / span > < span class = "n" > value_type< / span > < span class = "n" > rhs< / span > < span class = "p" > );< / span >
< span class = "c1" > // iterators:< / span >
< span class = "n" > iterator< / span > < span class = "n" > begin< / span > < span class = "p" > ()< / span > < span class = "n" > SPROUT_NOEXCEPT< / span > < span class = "p" > ;< / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > const_iterator< / span > < span class = "n" > begin< / span > < span class = "p" > ()< / span > < span class = "k" > const< / span > < span class = "n" > SPROUT_NOEXCEPT< / span > < span class = "p" > ;< / span >
< span class = "n" > iterator< / span > < span class = "n" > end< / span > < span class = "p" > ()< / span > < span class = "n" > SPROUT_NOEXCEPT< / span > < span class = "p" > ;< / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > const_iterator< / span > < span class = "n" > end< / span > < span class = "p" > ()< / span > < span class = "k" > const< / span > < span class = "n" > SPROUT_NOEXCEPT< / span > < span class = "p" > ;< / span >
< span class = "n" > reverse_iterator< / span > < span class = "n" > rbegin< / span > < span class = "p" > ()< / span > < span class = "n" > SPROUT_NOEXCEPT< / span > < span class = "p" > ;< / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > const_reverse_iterator< / span > < span class = "n" > rbegin< / span > < span class = "p" > ()< / span > < span class = "k" > const< / span > < span class = "n" > SPROUT_NOEXCEPT< / span > < span class = "p" > ;< / span >
< span class = "n" > reverse_iterator< / span > < span class = "n" > rend< / span > < span class = "p" > ()< / span > < span class = "n" > SPROUT_NOEXCEPT< / span > < span class = "p" > ;< / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > const_reverse_iterator< / span > < span class = "n" > rend< / span > < span class = "p" > ()< / span > < span class = "k" > const< / span > < span class = "n" > SPROUT_NOEXCEPT< / span > < span class = "p" > ;< / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > const_iterator< / span > < span class = "n" > cbegin< / span > < span class = "p" > ()< / span > < span class = "k" > const< / span > < span class = "n" > SPROUT_NOEXCEPT< / span > < span class = "p" > ;< / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > const_iterator< / span > < span class = "n" > cend< / span > < span class = "p" > ()< / span > < span class = "k" > const< / span > < span class = "n" > SPROUT_NOEXCEPT< / span > < span class = "p" > ;< / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > const_reverse_iterator< / span > < span class = "n" > crbegin< / span > < span class = "p" > ()< / span > < span class = "k" > const< / span > < span class = "n" > SPROUT_NOEXCEPT< / span > < span class = "p" > ;< / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > const_reverse_iterator< / span > < span class = "n" > crend< / span > < span class = "p" > ()< / span > < span class = "k" > const< / span > < span class = "n" > SPROUT_NOEXCEPT< / span > < span class = "p" > ;< / span >
< span class = "c1" > // capacity:< / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > size_type< / span > < span class = "n" > size< / span > < span class = "p" > ()< / span > < span class = "k" > const< / span > < span class = "n" > SPROUT_NOEXCEPT< / span > < span class = "p" > ;< / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > size_type< / span > < span class = "n" > length< / span > < span class = "p" > ()< / span > < span class = "k" > const< / span > < span class = "n" > SPROUT_NOEXCEPT< / span > < span class = "p" > ;< / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > size_type< / span > < span class = "n" > max_size< / span > < span class = "p" > ()< / span > < span class = "k" > const< / span > < span class = "n" > SPROUT_NOEXCEPT< / span > < span class = "p" > ;< / span >
< span class = "kt" > void< / span > < span class = "n" > resize< / span > < span class = "p" > (< / span > < span class = "n" > size_type< / span > < span class = "n" > n< / span > < span class = "p" > ,< / span > < span class = "n" > value_type< / span > < span class = "n" > c< / span > < span class = "p" > );< / span >
< span class = "kt" > void< / span > < span class = "n" > resize< / span > < span class = "p" > (< / span > < span class = "n" > size_type< / span > < span class = "n" > n< / span > < span class = "p" > );< / span >
2013-09-08 09:59:50 +00:00
< span class = "kt" > void< / span > < span class = "n" > clear< / span > < span class = "p" > ()< / span > < span class = "n" > SPROUT_NOEXCEPT< / span > < span class = "p" > ;< / span >
2013-09-06 05:27:44 +00:00
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "kt" > bool< / span > < span class = "n" > empty< / span > < span class = "p" > ()< / span > < span class = "k" > const< / span > < span class = "n" > SPROUT_NOEXCEPT< / span > < span class = "p" > ;< / span >
< span class = "c1" > // element access:< / span >
< span class = "n" > reference< / span > < span class = "k" > operator< / span > < span class = "p" > [](< / span > < span class = "n" > size_type< / span > < span class = "n" > i< / span > < span class = "p" > );< / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > const_reference< / span > < span class = "k" > operator< / span > < span class = "p" > [](< / span > < span class = "n" > size_type< / span > < span class = "n" > i< / span > < span class = "p" > )< / span > < span class = "k" > const< / span > < span class = "p" > ;< / span >
< span class = "n" > reference< / span > < span class = "n" > at< / span > < span class = "p" > (< / span > < span class = "n" > size_type< / span > < span class = "n" > i< / span > < span class = "p" > );< / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > const_reference< / span > < span class = "n" > at< / span > < span class = "p" > (< / span > < span class = "n" > size_type< / span > < span class = "n" > i< / span > < span class = "p" > )< / span > < span class = "k" > const< / span > < span class = "p" > ;< / span >
< span class = "n" > reference< / span > < span class = "n" > front< / span > < span class = "p" > ();< / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > const_reference< / span > < span class = "n" > front< / span > < span class = "p" > ()< / span > < span class = "k" > const< / span > < span class = "p" > ;< / span >
< span class = "n" > reference< / span > < span class = "n" > back< / span > < span class = "p" > ();< / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > const_reference< / span > < span class = "n" > back< / span > < span class = "p" > ()< / span > < span class = "k" > const< / span > < span class = "p" > ;< / span >
< span class = "c1" > // modifiers:< / span >
< span class = "k" > template< / span > < span class = "o" > < < / span > < span class = "n" > std< / span > < span class = "o" > ::< / span > < span class = "n" > size_t< / span > < span class = "n" > N2< / span > < span class = "o" > > < / span >
< span class = "n" > basic_string< / span > < span class = "o" > & < / span > < span class = "n" > assign< / span > < span class = "p" > (< / span > < span class = "n" > basic_string< / span > < span class = "o" > < < / span > < span class = "n" > T< / span > < span class = "p" > ,< / span > < span class = "n" > N2< / span > < span class = "p" > ,< / span > < span class = "n" > Traits< / span > < span class = "o" > > < / span > < span class = "k" > const< / span > < span class = "o" > & < / span > < span class = "n" > str< / span > < span class = "p" > );< / span >
< span class = "k" > template< / span > < span class = "o" > < < / span > < span class = "n" > std< / span > < span class = "o" > ::< / span > < span class = "n" > size_t< / span > < span class = "n" > N2< / span > < span class = "o" > > < / span >
< span class = "n" > basic_string< / span > < span class = "o" > & < / span > < span class = "n" > assign< / span > < span class = "p" > (< / span > < span class = "n" > basic_string< / span > < span class = "o" > < < / span > < span class = "n" > T< / span > < span class = "p" > ,< / span > < span class = "n" > N2< / span > < span class = "p" > ,< / span > < span class = "n" > Traits< / span > < span class = "o" > > < / span > < span class = "k" > const< / span > < span class = "o" > & < / span > < span class = "n" > str< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > pos< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > n< / span > < span class = "p" > );< / span >
< span class = "n" > basic_string< / span > < span class = "o" > & < / span > < span class = "n" > assign< / span > < span class = "p" > (< / span > < span class = "n" > value_type< / span > < span class = "k" > const< / span > < span class = "o" > *< / span > < span class = "n" > s< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > n< / span > < span class = "p" > );< / span >
< span class = "n" > basic_string< / span > < span class = "o" > & < / span > < span class = "n" > assign< / span > < span class = "p" > (< / span > < span class = "n" > value_type< / span > < span class = "k" > const< / span > < span class = "o" > *< / span > < span class = "n" > s< / span > < span class = "p" > );< / span >
< span class = "n" > basic_string< / span > < span class = "o" > & < / span > < span class = "n" > assign< / span > < span class = "p" > (< / span > < span class = "n" > size_type< / span > < span class = "n" > n< / span > < span class = "p" > ,< / span > < span class = "n" > value_type< / span > < span class = "n" > c< / span > < span class = "p" > );< / span >
2013-09-06 07:46:03 +00:00
< span class = "k" > template< / span > < span class = "o" > < < / span > < span class = "k" > typename< / span > < span class = "n" > InputIterator< / span > < span class = "o" > > < / span >
< span class = "n" > basic_string< / span > < span class = "o" > & < / span > < span class = "n" > assign< / span > < span class = "p" > (< / span > < span class = "n" > InputIterator< / span > < span class = "n" > first< / span > < span class = "p" > ,< / span > < span class = "n" > InputIterator< / span > < span class = "n" > last< / span > < span class = "p" > );< / span >
2013-09-06 05:27:44 +00:00
< span class = "kt" > void< / span > < span class = "n" > swap< / span > < span class = "p" > (< / span > < span class = "n" > basic_string< / span > < span class = "o" > & < / span > < span class = "n" > other< / span > < span class = "p" > )< / span > < span class = "n" > SPROUT_NOEXCEPT_EXPR< / span > < span class = "p" > (< / span > < span class = "n" > SPROUT_NOEXCEPT_EXPR< / span > < span class = "p" > (< / span > < span class = "n" > std< / span > < span class = "o" > ::< / span > < span class = "n" > swap< / span > < span class = "p" > (< / span > < span class = "n" > std< / span > < span class = "o" > ::< / span > < span class = "n" > declval< / span > < span class = "o" > < < / span > < span class = "n" > T< / span > < span class = "o" > & > < / span > < span class = "p" > (),< / span > < span class = "n" > std< / span > < span class = "o" > ::< / span > < span class = "n" > declval< / span > < span class = "o" > < < / span > < span class = "n" > T< / span > < span class = "o" > & > < / span > < span class = "p" > ())));< / span >
< span class = "c1" > // string operations:< / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > const_pointer< / span > < span class = "n" > c_str< / span > < span class = "p" > ()< / span > < span class = "k" > const< / span > < span class = "n" > SPROUT_NOEXCEPT< / span > < span class = "p" > ;< / span >
< span class = "n" > pointer< / span > < span class = "n" > data< / span > < span class = "p" > ()< / span > < span class = "n" > SPROUT_NOEXCEPT< / span > < span class = "p" > ;< / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > const_pointer< / span > < span class = "n" > data< / span > < span class = "p" > ()< / span > < span class = "k" > const< / span > < span class = "n" > SPROUT_NOEXCEPT< / span > < span class = "p" > ;< / span >
< span class = "n" > pointer< / span > < span class = "n" > c_array< / span > < span class = "p" > ()< / span > < span class = "n" > SPROUT_NOEXCEPT< / span > < span class = "p" > ;< / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > const_pointer< / span > < span class = "n" > c_array< / span > < span class = "p" > ()< / span > < span class = "k" > const< / span > < span class = "n" > SPROUT_NOEXCEPT< / span > < span class = "p" > ;< / span >
< span class = "k" > template< / span > < span class = "o" > < < / span > < span class = "n" > std< / span > < span class = "o" > ::< / span > < span class = "n" > size_t< / span > < span class = "n" > N2< / span > < span class = "o" > > < / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > size_type< / span > < span class = "n" > find< / span > < span class = "p" > (< / span > < span class = "n" > basic_string< / span > < span class = "o" > < < / span > < span class = "n" > T< / span > < span class = "p" > ,< / span > < span class = "n" > N2< / span > < span class = "p" > ,< / span > < span class = "n" > Traits< / span > < span class = "o" > > < / span > < span class = "k" > const< / span > < span class = "o" > & < / span > < span class = "n" > str< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > pos< / span > < span class = "o" > =< / span > < span class = "mi" > 0< / span > < span class = "p" > )< / span > < span class = "k" > const< / span > < span class = "n" > SPROUT_NOEXCEPT< / span > < span class = "p" > ;< / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > size_type< / span > < span class = "n" > find< / span > < span class = "p" > (< / span > < span class = "n" > value_type< / span > < span class = "k" > const< / span > < span class = "o" > *< / span > < span class = "n" > s< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > pos< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > n< / span > < span class = "p" > )< / span > < span class = "k" > const< / span > < span class = "p" > ;< / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > size_type< / span > < span class = "n" > find< / span > < span class = "p" > (< / span > < span class = "n" > value_type< / span > < span class = "k" > const< / span > < span class = "o" > *< / span > < span class = "n" > s< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > pos< / span > < span class = "o" > =< / span > < span class = "mi" > 0< / span > < span class = "p" > )< / span > < span class = "k" > const< / span > < span class = "p" > ;< / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > size_type< / span > < span class = "n" > find< / span > < span class = "p" > (< / span > < span class = "n" > value_type< / span > < span class = "n" > c< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > pos< / span > < span class = "o" > =< / span > < span class = "mi" > 0< / span > < span class = "p" > )< / span > < span class = "k" > const< / span > < span class = "p" > ;< / span >
< span class = "k" > template< / span > < span class = "o" > < < / span > < span class = "n" > std< / span > < span class = "o" > ::< / span > < span class = "n" > size_t< / span > < span class = "n" > N2< / span > < span class = "o" > > < / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > size_type< / span > < span class = "n" > rfind< / span > < span class = "p" > (< / span > < span class = "n" > basic_string< / span > < span class = "o" > < < / span > < span class = "n" > T< / span > < span class = "p" > ,< / span > < span class = "n" > N2< / span > < span class = "p" > ,< / span > < span class = "n" > Traits< / span > < span class = "o" > > < / span > < span class = "k" > const< / span > < span class = "o" > & < / span > < span class = "n" > str< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > pos< / span > < span class = "o" > =< / span > < span class = "n" > npos< / span > < span class = "p" > )< / span > < span class = "k" > const< / span > < span class = "n" > SPROUT_NOEXCEPT< / span > < span class = "p" > ;< / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > size_type< / span > < span class = "n" > rfind< / span > < span class = "p" > (< / span > < span class = "n" > value_type< / span > < span class = "k" > const< / span > < span class = "o" > *< / span > < span class = "n" > s< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > pos< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > n< / span > < span class = "p" > )< / span > < span class = "k" > const< / span > < span class = "p" > ;< / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > size_type< / span > < span class = "n" > rfind< / span > < span class = "p" > (< / span > < span class = "n" > value_type< / span > < span class = "k" > const< / span > < span class = "o" > *< / span > < span class = "n" > s< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > pos< / span > < span class = "o" > =< / span > < span class = "n" > npos< / span > < span class = "p" > )< / span > < span class = "k" > const< / span > < span class = "p" > ;< / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > size_type< / span > < span class = "n" > rfind< / span > < span class = "p" > (< / span > < span class = "n" > value_type< / span > < span class = "n" > c< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > pos< / span > < span class = "o" > =< / span > < span class = "n" > npos< / span > < span class = "p" > )< / span > < span class = "k" > const< / span > < span class = "p" > ;< / span >
< span class = "k" > template< / span > < span class = "o" > < < / span > < span class = "n" > std< / span > < span class = "o" > ::< / span > < span class = "n" > size_t< / span > < span class = "n" > N2< / span > < span class = "o" > > < / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > size_type< / span > < span class = "n" > find_first_of< / span > < span class = "p" > (< / span > < span class = "n" > basic_string< / span > < span class = "o" > < < / span > < span class = "n" > T< / span > < span class = "p" > ,< / span > < span class = "n" > N2< / span > < span class = "p" > ,< / span > < span class = "n" > Traits< / span > < span class = "o" > > < / span > < span class = "k" > const< / span > < span class = "o" > & < / span > < span class = "n" > str< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > pos< / span > < span class = "o" > =< / span > < span class = "mi" > 0< / span > < span class = "p" > )< / span > < span class = "k" > const< / span > < span class = "n" > SPROUT_NOEXCEPT< / span > < span class = "p" > ;< / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > size_type< / span > < span class = "n" > find_first_of< / span > < span class = "p" > (< / span > < span class = "n" > value_type< / span > < span class = "k" > const< / span > < span class = "o" > *< / span > < span class = "n" > s< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > pos< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > n< / span > < span class = "p" > )< / span > < span class = "k" > const< / span > < span class = "p" > ;< / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > size_type< / span > < span class = "n" > find_first_of< / span > < span class = "p" > (< / span > < span class = "n" > value_type< / span > < span class = "k" > const< / span > < span class = "o" > *< / span > < span class = "n" > s< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > pos< / span > < span class = "o" > =< / span > < span class = "mi" > 0< / span > < span class = "p" > )< / span > < span class = "k" > const< / span > < span class = "p" > ;< / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > size_type< / span > < span class = "n" > find_first_of< / span > < span class = "p" > (< / span > < span class = "n" > value_type< / span > < span class = "n" > c< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > pos< / span > < span class = "o" > =< / span > < span class = "mi" > 0< / span > < span class = "p" > )< / span > < span class = "k" > const< / span > < span class = "p" > ;< / span >
< span class = "k" > template< / span > < span class = "o" > < < / span > < span class = "n" > std< / span > < span class = "o" > ::< / span > < span class = "n" > size_t< / span > < span class = "n" > N2< / span > < span class = "o" > > < / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > size_type< / span > < span class = "n" > find_last_of< / span > < span class = "p" > (< / span > < span class = "n" > basic_string< / span > < span class = "o" > < < / span > < span class = "n" > T< / span > < span class = "p" > ,< / span > < span class = "n" > N2< / span > < span class = "p" > ,< / span > < span class = "n" > Traits< / span > < span class = "o" > > < / span > < span class = "k" > const< / span > < span class = "o" > & < / span > < span class = "n" > str< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > pos< / span > < span class = "o" > =< / span > < span class = "n" > npos< / span > < span class = "p" > )< / span > < span class = "k" > const< / span > < span class = "n" > SPROUT_NOEXCEPT< / span > < span class = "p" > ;< / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > size_type< / span > < span class = "n" > find_last_of< / span > < span class = "p" > (< / span > < span class = "n" > value_type< / span > < span class = "k" > const< / span > < span class = "o" > *< / span > < span class = "n" > s< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > pos< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > n< / span > < span class = "p" > )< / span > < span class = "k" > const< / span > < span class = "p" > ;< / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > size_type< / span > < span class = "n" > find_last_of< / span > < span class = "p" > (< / span > < span class = "n" > value_type< / span > < span class = "k" > const< / span > < span class = "o" > *< / span > < span class = "n" > s< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > pos< / span > < span class = "o" > =< / span > < span class = "n" > npos< / span > < span class = "p" > )< / span > < span class = "k" > const< / span > < span class = "p" > ;< / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > size_type< / span > < span class = "n" > find_last_of< / span > < span class = "p" > (< / span > < span class = "n" > value_type< / span > < span class = "n" > c< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > pos< / span > < span class = "o" > =< / span > < span class = "n" > npos< / span > < span class = "p" > )< / span > < span class = "k" > const< / span > < span class = "p" > ;< / span >
< span class = "k" > template< / span > < span class = "o" > < < / span > < span class = "n" > std< / span > < span class = "o" > ::< / span > < span class = "n" > size_t< / span > < span class = "n" > N2< / span > < span class = "o" > > < / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > size_type< / span > < span class = "n" > find_first_not_of< / span > < span class = "p" > (< / span > < span class = "n" > basic_string< / span > < span class = "o" > < < / span > < span class = "n" > T< / span > < span class = "p" > ,< / span > < span class = "n" > N2< / span > < span class = "p" > ,< / span > < span class = "n" > Traits< / span > < span class = "o" > > < / span > < span class = "k" > const< / span > < span class = "o" > & < / span > < span class = "n" > str< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > pos< / span > < span class = "o" > =< / span > < span class = "mi" > 0< / span > < span class = "p" > )< / span > < span class = "k" > const< / span > < span class = "n" > SPROUT_NOEXCEPT< / span > < span class = "p" > ;< / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > size_type< / span > < span class = "n" > find_first_not_of< / span > < span class = "p" > (< / span > < span class = "n" > value_type< / span > < span class = "k" > const< / span > < span class = "o" > *< / span > < span class = "n" > s< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > pos< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > n< / span > < span class = "p" > )< / span > < span class = "k" > const< / span > < span class = "p" > ;< / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > size_type< / span > < span class = "n" > find_first_not_of< / span > < span class = "p" > (< / span > < span class = "n" > value_type< / span > < span class = "k" > const< / span > < span class = "o" > *< / span > < span class = "n" > s< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > pos< / span > < span class = "o" > =< / span > < span class = "mi" > 0< / span > < span class = "p" > )< / span > < span class = "k" > const< / span > < span class = "p" > ;< / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > size_type< / span > < span class = "n" > find_first_not_of< / span > < span class = "p" > (< / span > < span class = "n" > value_type< / span > < span class = "n" > c< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > pos< / span > < span class = "o" > =< / span > < span class = "mi" > 0< / span > < span class = "p" > )< / span > < span class = "k" > const< / span > < span class = "p" > ;< / span >
< span class = "k" > template< / span > < span class = "o" > < < / span > < span class = "n" > std< / span > < span class = "o" > ::< / span > < span class = "n" > size_t< / span > < span class = "n" > N2< / span > < span class = "o" > > < / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > size_type< / span > < span class = "n" > find_last_not_of< / span > < span class = "p" > (< / span > < span class = "n" > basic_string< / span > < span class = "o" > < < / span > < span class = "n" > T< / span > < span class = "p" > ,< / span > < span class = "n" > N2< / span > < span class = "p" > ,< / span > < span class = "n" > Traits< / span > < span class = "o" > > < / span > < span class = "k" > const< / span > < span class = "o" > & < / span > < span class = "n" > str< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > pos< / span > < span class = "o" > =< / span > < span class = "n" > npos< / span > < span class = "p" > )< / span > < span class = "k" > const< / span > < span class = "n" > SPROUT_NOEXCEPT< / span > < span class = "p" > ;< / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > size_type< / span > < span class = "n" > find_last_not_of< / span > < span class = "p" > (< / span > < span class = "n" > value_type< / span > < span class = "k" > const< / span > < span class = "o" > *< / span > < span class = "n" > s< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > pos< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > n< / span > < span class = "p" > )< / span > < span class = "k" > const< / span > < span class = "p" > ;< / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > size_type< / span > < span class = "n" > find_last_not_of< / span > < span class = "p" > (< / span > < span class = "n" > value_type< / span > < span class = "k" > const< / span > < span class = "o" > *< / span > < span class = "n" > s< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > pos< / span > < span class = "o" > =< / span > < span class = "n" > npos< / span > < span class = "p" > )< / span > < span class = "k" > const< / span > < span class = "p" > ;< / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > size_type< / span > < span class = "n" > find_last_not_of< / span > < span class = "p" > (< / span > < span class = "n" > value_type< / span > < span class = "n" > c< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > pos< / span > < span class = "o" > =< / span > < span class = "n" > npos< / span > < span class = "p" > )< / span > < span class = "k" > const< / span > < span class = "p" > ;< / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > basic_string< / span > < span class = "n" > substr< / span > < span class = "p" > (< / span > < span class = "n" > size_type< / span > < span class = "n" > pos< / span > < span class = "o" > =< / span > < span class = "mi" > 0< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > n< / span > < span class = "o" > =< / span > < span class = "n" > npos< / span > < span class = "p" > )< / span > < span class = "k" > const< / span > < span class = "p" > ;< / span >
< span class = "k" > template< / span > < span class = "o" > < < / span > < span class = "n" > std< / span > < span class = "o" > ::< / span > < span class = "n" > size_t< / span > < span class = "n" > N2< / span > < span class = "o" > > < / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "kt" > int< / span > < span class = "n" > compare< / span > < span class = "p" > (< / span > < span class = "n" > basic_string< / span > < span class = "o" > < < / span > < span class = "n" > T< / span > < span class = "p" > ,< / span > < span class = "n" > N2< / span > < span class = "p" > ,< / span > < span class = "n" > Traits< / span > < span class = "o" > > < / span > < span class = "k" > const< / span > < span class = "o" > & < / span > < span class = "n" > str< / span > < span class = "p" > )< / span > < span class = "k" > const< / span > < span class = "p" > ;< / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "kt" > int< / span > < span class = "n" > compare< / span > < span class = "p" > (< / span > < span class = "n" > value_type< / span > < span class = "k" > const< / span > < span class = "o" > *< / span > < span class = "n" > s< / span > < span class = "p" > )< / span > < span class = "k" > const< / span > < span class = "p" > ;< / span >
< span class = "k" > template< / span > < span class = "o" > < < / span > < span class = "n" > std< / span > < span class = "o" > ::< / span > < span class = "n" > size_t< / span > < span class = "n" > N2< / span > < span class = "o" > > < / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "kt" > int< / span > < span class = "n" > compare< / span > < span class = "p" > (< / span > < span class = "n" > size_type< / span > < span class = "n" > pos1< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > n1< / span > < span class = "p" > ,< / span > < span class = "n" > basic_string< / span > < span class = "o" > < < / span > < span class = "n" > T< / span > < span class = "p" > ,< / span > < span class = "n" > N2< / span > < span class = "p" > ,< / span > < span class = "n" > Traits< / span > < span class = "o" > > < / span > < span class = "k" > const< / span > < span class = "o" > & < / span > < span class = "n" > str< / span > < span class = "p" > )< / span > < span class = "k" > const< / span > < span class = "p" > ;< / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "kt" > int< / span > < span class = "n" > compare< / span > < span class = "p" > (< / span > < span class = "n" > size_type< / span > < span class = "n" > pos1< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > n1< / span > < span class = "p" > ,< / span > < span class = "n" > value_type< / span > < span class = "k" > const< / span > < span class = "o" > *< / span > < span class = "n" > s< / span > < span class = "p" > )< / span > < span class = "k" > const< / span > < span class = "p" > ;< / span >
< span class = "k" > template< / span > < span class = "o" > < < / span > < span class = "n" > std< / span > < span class = "o" > ::< / span > < span class = "n" > size_t< / span > < span class = "n" > N2< / span > < span class = "o" > > < / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "kt" > int< / span > < span class = "n" > compare< / span > < span class = "p" > (< / span > < span class = "n" > size_type< / span > < span class = "n" > pos1< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > n1< / span > < span class = "p" > ,< / span > < span class = "n" > basic_string< / span > < span class = "o" > < < / span > < span class = "n" > T< / span > < span class = "p" > ,< / span > < span class = "n" > N2< / span > < span class = "p" > ,< / span > < span class = "n" > Traits< / span > < span class = "o" > > < / span > < span class = "k" > const< / span > < span class = "o" > & < / span > < span class = "n" > str< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > pos2< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > n2< / span > < span class = "p" > )< / span > < span class = "k" > const< / span > < span class = "p" > ;< / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "kt" > int< / span > < span class = "n" > compare< / span > < span class = "p" > (< / span > < span class = "n" > size_type< / span > < span class = "n" > pos1< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > n1< / span > < span class = "p" > ,< / span > < span class = "n" > value_type< / span > < span class = "k" > const< / span > < span class = "o" > *< / span > < span class = "n" > s< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > n2< / span > < span class = "p" > )< / span > < span class = "k" > const< / span > < span class = "p" > ;< / span >
< span class = "c1" > // conversions:< / span >
< span class = "k" > template< / span > < span class = "o" > < < / span > < span class = "k" > typename< / span > < span class = "n" > Allocator< / span > < span class = "o" > > < / span >
< span class = "n" > SPROUT_EXPLICIT_CONVERSION< / span > < span class = "k" > operator< / span > < span class = "n" > std< / span > < span class = "o" > ::< / span > < span class = "n" > basic_string< / span > < span class = "o" > < < / span > < span class = "n" > T< / span > < span class = "p" > ,< / span > < span class = "n" > Traits< / span > < span class = "p" > ,< / span > < span class = "n" > Allocator< / span > < span class = "o" > > < / span > < span class = "p" > ()< / span > < span class = "k" > const< / span > < span class = "p" > ;< / span >
< span class = "c1" > // construct/copy/destroy (for string iterator):< / span >
< span class = "k" > template< / span > < span class = "o" > < < / span > < span class = "k" > typename< / span > < span class = "n" > StringConstIterator< / span > < span class = "o" > > < / span >
< span class = "n" > basic_string< / span > < span class = "o" > & < / span > < span class = "k" > operator< / span > < span class = "o" > =< / span > < span class = "p" > (< / span > < span class = "n" > StringConstIterator< / span > < span class = "n" > rhs< / span > < span class = "p" > );< / span >
< span class = "c1" > // modifiers (for string iterator):< / span >
< span class = "k" > template< / span > < span class = "o" > < < / span > < span class = "k" > typename< / span > < span class = "n" > StringConstIterator< / span > < span class = "o" > > < / span >
< span class = "n" > basic_string< / span > < span class = "o" > & < / span > < span class = "n" > assign< / span > < span class = "p" > (< / span > < span class = "n" > StringConstIterator< / span > < span class = "n" > s< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > n< / span > < span class = "p" > );< / span >
< span class = "k" > template< / span > < span class = "o" > < < / span > < span class = "k" > typename< / span > < span class = "n" > StringConstIterator< / span > < span class = "o" > > < / span >
< span class = "n" > basic_string< / span > < span class = "o" > & < / span > < span class = "n" > assign< / span > < span class = "p" > (< / span > < span class = "n" > StringConstIterator< / span > < span class = "n" > s< / span > < span class = "p" > );< / span >
< span class = "c1" > // string operations (for string iterator):< / span >
< span class = "k" > template< / span > < span class = "o" > < < / span > < span class = "k" > typename< / span > < span class = "n" > StringConstIterator< / span > < span class = "o" > > < / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > size_type< / span > < span class = "n" > find< / span > < span class = "p" > (< / span > < span class = "n" > StringConstIterator< / span > < span class = "n" > s< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > pos< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > n< / span > < span class = "p" > )< / span > < span class = "k" > const< / span > < span class = "p" > ;< / span >
< span class = "k" > template< / span > < span class = "o" > < < / span > < span class = "k" > typename< / span > < span class = "n" > StringConstIterator< / span > < span class = "o" > > < / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > size_type< / span > < span class = "n" > find< / span > < span class = "p" > (< / span > < span class = "n" > StringConstIterator< / span > < span class = "n" > s< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > pos< / span > < span class = "o" > =< / span > < span class = "mi" > 0< / span > < span class = "p" > )< / span > < span class = "k" > const< / span > < span class = "p" > ;< / span >
< span class = "k" > template< / span > < span class = "o" > < < / span > < span class = "k" > typename< / span > < span class = "n" > StringConstIterator< / span > < span class = "o" > > < / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > size_type< / span > < span class = "n" > rfind< / span > < span class = "p" > (< / span > < span class = "n" > StringConstIterator< / span > < span class = "n" > s< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > pos< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > n< / span > < span class = "p" > )< / span > < span class = "k" > const< / span > < span class = "p" > ;< / span >
< span class = "k" > template< / span > < span class = "o" > < < / span > < span class = "k" > typename< / span > < span class = "n" > StringConstIterator< / span > < span class = "o" > > < / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > size_type< / span > < span class = "n" > rfind< / span > < span class = "p" > (< / span > < span class = "n" > StringConstIterator< / span > < span class = "n" > s< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > pos< / span > < span class = "o" > =< / span > < span class = "n" > npos< / span > < span class = "p" > )< / span > < span class = "k" > const< / span > < span class = "p" > ;< / span >
< span class = "k" > template< / span > < span class = "o" > < < / span > < span class = "k" > typename< / span > < span class = "n" > StringConstIterator< / span > < span class = "o" > > < / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > size_type< / span > < span class = "n" > find_first_of< / span > < span class = "p" > (< / span > < span class = "n" > StringConstIterator< / span > < span class = "n" > s< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > pos< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > n< / span > < span class = "p" > )< / span > < span class = "k" > const< / span > < span class = "p" > ;< / span >
< span class = "k" > template< / span > < span class = "o" > < < / span > < span class = "k" > typename< / span > < span class = "n" > StringConstIterator< / span > < span class = "o" > > < / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > size_type< / span > < span class = "n" > find_first_of< / span > < span class = "p" > (< / span > < span class = "n" > StringConstIterator< / span > < span class = "n" > s< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > pos< / span > < span class = "o" > =< / span > < span class = "mi" > 0< / span > < span class = "p" > )< / span > < span class = "k" > const< / span > < span class = "p" > ;< / span >
< span class = "k" > template< / span > < span class = "o" > < < / span > < span class = "k" > typename< / span > < span class = "n" > StringConstIterator< / span > < span class = "o" > > < / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > size_type< / span > < span class = "n" > find_last_of< / span > < span class = "p" > (< / span > < span class = "n" > StringConstIterator< / span > < span class = "n" > s< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > pos< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > n< / span > < span class = "p" > )< / span > < span class = "k" > const< / span > < span class = "p" > ;< / span >
< span class = "k" > template< / span > < span class = "o" > < < / span > < span class = "k" > typename< / span > < span class = "n" > StringConstIterator< / span > < span class = "o" > > < / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > size_type< / span > < span class = "n" > find_last_of< / span > < span class = "p" > (< / span > < span class = "n" > StringConstIterator< / span > < span class = "n" > s< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > pos< / span > < span class = "o" > =< / span > < span class = "mi" > 0< / span > < span class = "p" > )< / span > < span class = "k" > const< / span > < span class = "p" > ;< / span >
< span class = "k" > template< / span > < span class = "o" > < < / span > < span class = "k" > typename< / span > < span class = "n" > StringConstIterator< / span > < span class = "o" > > < / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > size_type< / span > < span class = "n" > find_first_not_of< / span > < span class = "p" > (< / span > < span class = "n" > StringConstIterator< / span > < span class = "n" > s< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > pos< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > n< / span > < span class = "p" > )< / span > < span class = "k" > const< / span > < span class = "p" > ;< / span >
< span class = "k" > template< / span > < span class = "o" > < < / span > < span class = "k" > typename< / span > < span class = "n" > StringConstIterator< / span > < span class = "o" > > < / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > size_type< / span > < span class = "n" > find_first_not_of< / span > < span class = "p" > (< / span > < span class = "n" > StringConstIterator< / span > < span class = "n" > s< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > pos< / span > < span class = "o" > =< / span > < span class = "mi" > 0< / span > < span class = "p" > )< / span > < span class = "k" > const< / span > < span class = "p" > ;< / span >
< span class = "k" > template< / span > < span class = "o" > < < / span > < span class = "k" > typename< / span > < span class = "n" > StringConstIterator< / span > < span class = "o" > > < / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > size_type< / span > < span class = "n" > find_last_not_of< / span > < span class = "p" > (< / span > < span class = "n" > StringConstIterator< / span > < span class = "n" > s< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > pos< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > n< / span > < span class = "p" > )< / span > < span class = "k" > const< / span > < span class = "p" > ;< / span >
< span class = "k" > template< / span > < span class = "o" > < < / span > < span class = "k" > typename< / span > < span class = "n" > StringConstIterator< / span > < span class = "o" > > < / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "n" > size_type< / span > < span class = "n" > find_last_not_of< / span > < span class = "p" > (< / span > < span class = "n" > StringConstIterator< / span > < span class = "n" > s< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > pos< / span > < span class = "o" > =< / span > < span class = "n" > npos< / span > < span class = "p" > )< / span > < span class = "k" > const< / span > < span class = "p" > ;< / span >
< span class = "k" > template< / span > < span class = "o" > < < / span > < span class = "k" > typename< / span > < span class = "n" > StringConstIterator< / span > < span class = "o" > > < / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "kt" > int< / span > < span class = "n" > compare< / span > < span class = "p" > (< / span > < span class = "n" > StringConstIterator< / span > < span class = "n" > s< / span > < span class = "p" > )< / span > < span class = "k" > const< / span > < span class = "p" > ;< / span >
< span class = "k" > template< / span > < span class = "o" > < < / span > < span class = "k" > typename< / span > < span class = "n" > StringConstIterator< / span > < span class = "o" > > < / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "kt" > int< / span > < span class = "n" > compare< / span > < span class = "p" > (< / span > < span class = "n" > size_type< / span > < span class = "n" > pos1< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > n1< / span > < span class = "p" > ,< / span > < span class = "n" > StringConstIterator< / span > < span class = "n" > s< / span > < span class = "p" > )< / span > < span class = "k" > const< / span > < span class = "p" > ;< / span >
< span class = "k" > template< / span > < span class = "o" > < < / span > < span class = "k" > typename< / span > < span class = "n" > StringConstIterator< / span > < span class = "o" > > < / span >
< span class = "n" > SPROUT_CONSTEXPR< / span > < span class = "kt" > int< / span > < span class = "n" > compare< / span > < span class = "p" > (< / span > < span class = "n" > size_type< / span > < span class = "n" > pos1< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > n1< / span > < span class = "p" > ,< / span > < span class = "n" > StringConstIterator< / span > < span class = "n" > s< / span > < span class = "p" > ,< / span > < span class = "n" > size_type< / span > < span class = "n" > n2< / span > < span class = "p" > )< / span > < span class = "k" > const< / span > < span class = "p" > ;< / span >
< span class = "p" > };< / span >
< / pre > < / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< div class = "clearer" > < / div >
< / div >
< div class = "related" >
< h3 > Navigation< / h3 >
< ul >
< li class = "right" style = "margin-right: 10px" >
< a href = "../../../genindex.html" title = "General Index"
>index< / a > < / li >
< li class = "right" >
2013-09-08 10:28:17 +00:00
< a href = "operator-assign.html" title = "operator="
2013-09-06 05:27:44 +00:00
>next< / a > |< / li >
< li class = "right" >
< a href = "../char_traits/assign-iterator.html" title = "assign"
>previous< / a > |< / li >
< li > < a href = "../../../index.html" > Sprout 1.0 documentation< / a > » < / li >
< li > < a href = "../../index.html" > Libraries< / a > » < / li >
< li > < a href = "../index.html" > Sprout.String< / a > » < / li >
< / ul >
< / div >
< div class = "footer" >
© Copyright 2013, Bolero MURAKAMI.
Created using < a href = "http://sphinx.pocoo.org/" > Sphinx< / a > 1.1.3.
< / div >
< / body >
< / html >