2010-03-28 16:08:35 +00:00
< html >
< head >
< meta http-equiv = "Content-Type" content = "text/html; charset=US-ASCII" >
< title > Examples< / title >
< link rel = "stylesheet" href = "../../../../../doc/html/boostbook.css" type = "text/css" >
2010-04-08 19:09:34 +00:00
< meta name = "generator" content = "DocBook XSL Stylesheets V1.75.1" >
2010-03-28 16:08:35 +00:00
< link rel = "home" href = "../index.html" title = "Chapter 1. Range 2.0" >
< link rel = "up" href = "../index.html" title = "Chapter 1. Range 2.0" >
< link rel = "prev" href = "library_headers.html" title = "Library Headers" >
< link rel = "next" href = "mfc_atl.html" title = "MFC/ATL (courtesy of Shunsuke Sogame)" >
< / head >
< body bgcolor = "white" text = "black" link = "#0000FF" vlink = "#840084" alink = "#0000FF" >
< table cellpadding = "2" width = "100%" > < tr >
< td valign = "top" > < img alt = "Boost C++ Libraries" width = "277" height = "86" src = "../../../../../boost.png" > < / td >
< td align = "center" > < a href = "../../../../../index.html" > Home< / a > < / td >
< td align = "center" > < a href = "../../../../libraries.htm" > Libraries< / a > < / td >
< td align = "center" > < a href = "http://www.boost.org/users/people.html" > People< / a > < / td >
< td align = "center" > < a href = "http://www.boost.org/users/faq.html" > FAQ< / a > < / td >
< td align = "center" > < a href = "../../../../../more/index.htm" > More< / a > < / td >
< / tr > < / table >
< hr >
< div class = "spirit-nav" >
< a accesskey = "p" href = "library_headers.html" > < img src = "../../../../../doc/html/images/prev.png" alt = "Prev" > < / a > < a accesskey = "u" href = "../index.html" > < img src = "../../../../../doc/html/images/up.png" alt = "Up" > < / a > < a accesskey = "h" href = "../index.html" > < img src = "../../../../../doc/html/images/home.png" alt = "Home" > < / a > < a accesskey = "n" href = "mfc_atl.html" > < img src = "../../../../../doc/html/images/next.png" alt = "Next" > < / a >
< / div >
< div class = "section" title = "Examples" >
< div class = "titlepage" > < div > < div > < h2 class = "title" style = "clear: both" >
< a name = "range.examples" > < / a > < a class = "link" href = "examples.html" title = "Examples" > Examples< / a >
< / h2 > < / div > < / div > < / div >
< p >
Some examples are given in the accompanying test files:
< / p >
< div class = "itemizedlist" > < ul class = "itemizedlist" type = "disc" >
< li class = "listitem" >
< a href = "http://www.boost.org/libs/range/test/string.cpp" target = "_top" > string.cpp< / a >
shows how to implement a container version of < code class = "computeroutput" > < span class = "identifier" > std< / span > < span class = "special" > ::< / span > < span class = "identifier" > find< / span > < span class = "special" > ()< / span > < / code > that works with < code class = "computeroutput" > < span class = "keyword" > char< / span > < span class = "special" > []< / span > < / code > ,< code class = "computeroutput" > < span class = "keyword" > wchar_t< / span > < span class = "special" > []< / span > < / code > ,< code class = "computeroutput" > < span class = "keyword" > char< / span > < span class = "special" > *< / span > < / code > ,< code class = "computeroutput" > < span class = "keyword" > wchar_t< / span > < span class = "special" > *< / span > < / code > .
< / li >
< li class = "listitem" >
< a href = "http://www.boost.org/libs/range/test/algorithm_example.cpp" target = "_top" > algorithm_example.cpp< / a >
shows the replace example from the introduction.
< / li >
< li class = "listitem" > < a href = "http://www.boost.org/libs/range/test/iterator_range.cpp" target = "_top" > iterator_range.cpp< / a > < / li >
< li class = "listitem" > < a href = "http://www.boost.org/libs/range/test/sub_range.cpp" target = "_top" > sub_range.cpp< / a > < / li >
< li class = "listitem" > < a href = "http://www.boost.org/libs/range/test/iterator_pair.cpp" target = "_top" > iterator_pair.cpp< / a > < / li >
< li class = "listitem" > < a href = "http://www.boost.org/libs/range/test/reversible_range.cpp" target = "_top" > reversible_range.cpp< / a > < / li >
< li class = "listitem" > < a href = "http://www.boost.org/libs/range/test/std_container.cpp" target = "_top" > std_container.cpp< / a > < / li >
< li class = "listitem" > < a href = "http://www.boost.org/libs/range/test/array.cpp" target = "_top" > array.cpp< / a > < / li >
< / ul > < / div >
< / div >
< table xmlns:rev = "http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width = "100%" > < tr >
< td align = "left" > < / td >
< td align = "right" > < div class = "copyright-footer" > Copyright © 2003 -2010 Thorsten Ottosen, Neil Groves< p >
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at < a href = "http://www.boost.org/LICENSE_1_0.txt" target = "_top" > http://www.boost.org/LICENSE_1_0.txt< / a > )
< / p >
< / div > < / td >
< / tr > < / table >
< hr >
< div class = "spirit-nav" >
< a accesskey = "p" href = "library_headers.html" > < img src = "../../../../../doc/html/images/prev.png" alt = "Prev" > < / a > < a accesskey = "u" href = "../index.html" > < img src = "../../../../../doc/html/images/up.png" alt = "Up" > < / a > < a accesskey = "h" href = "../index.html" > < img src = "../../../../../doc/html/images/home.png" alt = "Home" > < / a > < a accesskey = "n" href = "mfc_atl.html" > < img src = "../../../../../doc/html/images/next.png" alt = "Next" > < / a >
< / div >
< / body >
< / html >