diff options
author | Beman Dawes <bdawes@acm.org> | 2007-11-06 14:22:00 +0000 |
---|---|---|
committer | Beman Dawes <bdawes@acm.org> | 2007-11-06 14:22:00 +0000 |
commit | 85ba801757b9e0ffff59f75a6b3b96d13a17084b (patch) | |
tree | 34363a87e5c9cb5b83473b32675bfa82fbdb1d07 | |
parent | 4f3a64a432ea5e7cabe9cabb1a822f94c2371469 (diff) | |
download | boost-85ba801757b9e0ffff59f75a6b3b96d13a17084b.tar.gz |
Add license
[SVN r40837]
m--------- | libs/format | 0 | ||||
-rw-r--r-- | more/generic_programming.html | 59 | ||||
-rw-r--r-- | more/regression.html | 11 |
3 files changed, 28 insertions, 42 deletions
diff --git a/libs/format b/libs/format -Subproject b8495a42698a580f194cdbcc876f61aececa7aa +Subproject 2b907bc09e432256000fa4ef196c8ae7c9cffa9 diff --git a/more/generic_programming.html b/more/generic_programming.html index 23a12413e0..165dc18c84 100644 --- a/more/generic_programming.html +++ b/more/generic_programming.html @@ -3,7 +3,7 @@ <html> <head> <meta name="generator" content= - "HTML Tidy for Cygwin (vers 1st April 2002), see www.w3.org"> + "Microsoft FrontPage 5.0"> <meta http-equiv="Content-Type" content= "text/html; charset=windows-1252"> <meta name="GENERATOR" content="Microsoft FrontPage 4.0"> @@ -57,8 +57,7 @@ </p> <blockquote> -<pre> -void* memcpy(void* region1, const void* region2, size_t n) +<pre>void* memcpy(void* region1, const void* region2, size_t n) { const char* first = (const char*)region2; const char* last = ((const char*)region2) + n; @@ -96,8 +95,7 @@ void* memcpy(void* region1, const void* region2, size_t n) </p> <blockquote> -<pre> -template <typename InputIterator, typename OutputIterator> +<pre>template <typename InputIterator, typename OutputIterator> OutputIterator copy(InputIterator first, InputIterator last, OutputIterator result) { @@ -116,8 +114,7 @@ copy(InputIterator first, InputIterator last, OutputIterator result) </p> <blockquote> -<pre> -#include <list> +<pre>#include <list> #include <vector> #include <iostream> @@ -183,8 +180,7 @@ int main() looks something like this:</p> <blockquote> -<pre> -template <class Iterator> +<pre>template <class Iterator> struct iterator_traits { typedef ... iterator_category; typedef ... value_type; @@ -251,8 +247,7 @@ struct iterator_traits { for a more detailed description of iterator tags.</p> <blockquote> -<pre> -namespace std { +<pre>namespace std { struct input_iterator_tag { }; struct bidirectional_iterator_tag { }; struct random_access_iterator_tag { }; @@ -323,8 +318,7 @@ namespace std { itself and generators were a convenient way to produce those types.</p> <blockquote> -<pre> -template <class Predicate, class Iterator, +<pre>template <class Predicate, class Iterator, class Value = <i>complicated default</i>, class Reference = <i>complicated default</i>, class Pointer = <i>complicated default</i>, @@ -344,8 +338,7 @@ struct filter_iterator_generator { using the generator is much easier. You can usually just write:</p> <blockquote> -<pre> -boost::filter_iterator_generator<my_predicate,my_base_iterator>::type +<pre>boost::filter_iterator_generator<my_predicate,my_base_iterator>::type </pre> </blockquote> @@ -364,8 +357,7 @@ boost::filter_iterator_generator<my_predicate,my_base_iterator>::type <p>For example, given:</p> <blockquote> -<pre> -struct widget { +<pre>struct widget { void tweak(int); }; std::vector<widget *> widget_ptrs; @@ -378,8 +370,7 @@ std::vector<widget *> widget_ptrs; we can easily tweak all widgets: <blockquote> -<pre> -void tweak_all_widgets1(int arg) +<pre>void tweak_all_widgets1(int arg) { for_each(widget_ptrs.begin(), widget_ptrs.end(), <b>bind2nd</b>(std::<b>mem_fun</b>(&widget::tweak), arg)); @@ -391,8 +382,7 @@ void tweak_all_widgets1(int arg) this:</p> <blockquote> -<pre> -void tweak_all_widgets2(int arg) +<pre>void tweak_all_widgets2(int arg) { for_each(struct_ptrs.begin(), struct_ptrs.end(), <b>std::binder2nd<std::mem_fun1_t<void, widget, int> ></b>( @@ -449,26 +439,13 @@ void tweak_all_widgets2(int arg) <hr> <p>Revised - <!--webbot bot="Timestamp" s-type="EDITED" s-format="%d %b %Y" startspan -->18 - August 2004<!--webbot bot="Timestamp" endspan i-checksum="14885" --> + <!--webbot bot="Timestamp" s-type="EDITED" s-format="%d %b %Y" startspan -->06 Nov 2007<!--webbot bot="Timestamp" endspan i-checksum="15272" --> </p> - <p>© Copyright David Abrahams 2001. Permission to copy, use, modify, - sell and distribute this document is granted provided this copyright - notice appears in all copies. This document is provided "as is" without - express or implied warranty, and with no claim as to its suitability for - any purpose. - <!-- LocalWords: HTML html charset gif alt htm struct SGI namespace std libs - --> - - <!-- LocalWords: InputIterator BidirectionalIterator RandomAccessIterator pdf - --> - - <!-- LocalWords: typename Alexandrescu templated Andrei's Abrahams memcpy int - --> - <!-- LocalWords: const OutputIterator iostream pre cpl - --> - </p> - </body> -</html> + <p>© Copyright David Abrahams 2001.</p> +<p>Distributed under the Boost Software License, Version 1.0. See +<a href="http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt</a></p> + + </body> +</html>
\ No newline at end of file diff --git a/more/regression.html b/more/regression.html index 58a2c18fa3..70c37ed079 100644 --- a/more/regression.html +++ b/more/regression.html @@ -5,5 +5,14 @@ <body> Automatically loading index page... if nothing happens, please go to <a href="../tools/regression/index.htm">http://www.boost.org/tools/regression/index.htm</a>. +<hr> + +<p>© Copyright Douglas Gregor, 2005</p> + +<p>Distributed under the Boost Software License, Version 1.0. See +<a href="http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt</a></p> + +<p> </p> +<p> </p> </body> -</html> +</html>
\ No newline at end of file |