diff --git a/MultiPassInputIterator.html b/MultiPassInputIterator.html index cb76b45..f2a854b 100644 --- a/MultiPassInputIterator.html +++ b/MultiPassInputIterator.html @@ -85,7 +85,7 @@ Once that is done we can drop Multi-Pass Input Iterator.
Copyright © 2000 -Jeremy Siek, Univ.of Notre Dame (jsiek@lsc.nd.edu) +Jeremy Siek, Univ.of Notre Dame (jsiek@lsc.nd.edu)
diff --git a/include/boost/utility.hpp b/include/boost/utility.hpp index f1a6389..df3ad24 100644 --- a/include/boost/utility.hpp +++ b/include/boost/utility.hpp @@ -1,8 +1,8 @@ // boost utility.hpp header file -------------------------------------------// -// (C) Copyright boost.org 1999. Permission to copy, use, modify, sell +// (C) Copyright boost.org 1999-2001. Permission to copy, use, modify, sell // and distribute this software is granted provided this copyright -// notice appears in all copies. This software is provided "as is" without +// notice appears in all copies. This software is provided "as is" without // express or implied warranty, and with no claim as to its suitability for // any purpose. @@ -11,6 +11,7 @@ // Classes appear in alphabetical order // Revision History +// 29 May 01 Ron's member idiom base class templates added (Daryle Walker) // 21 May 01 checked_delete() and checked_array_delete() added (Beman Dawes, // suggested by Dave Abrahams, generalizing idea from Vladimir Prus) // 21 May 01 made next() and prior() inline (Beman Dawes) @@ -25,10 +26,8 @@ #ifndef BOOST_UTILITY_HPP #define BOOST_UTILITY_HPP -#include // broken compiler workarounds -#include -#include // for size_t -#include // for std::pair +#include // for BOOST_STATIC_ASSERT +#include // for std::pair namespace boost { @@ -87,10 +86,58 @@ namespace boost const noncopyable& operator=( const noncopyable& ); }; // noncopyable -// class tied -------------------------------------------------------// + +// Ron's member idiom base class templates ---------------------------------// + + // Helpers to initialize a base object so a derived class can use this + // object in the initialization of another base class. Used by + // Dietmar Kuehl from ideas by Ron Klatcho to solve the problem of a + // base class needing to be initialized by a member. + + // Contributed by Daryle Walker + + template < typename MemberType, int UniqueID = 0 > + class nullary_rons_member + { + protected: + nullary_rons_member() + : ron_() + {} + + MemberType ron_; + + }; // nullary_rons_member + + template < typename MemberType, typename InitializerType, int UniqueID = 0 > + class unary_rons_member + { + protected: + explicit unary_rons_member( InitializerType x ) + : ron_( x ) + {} + + MemberType ron_; + + }; // unary_rons_member + + template < typename MemberType, typename InitializerType1, + typename InitializerType2, int UniqueID = 0 > + class binary_rons_member + { + protected: + binary_rons_member( InitializerType1 x, InitializerType2 y ) + : ron_( x, y ) + {} + + MemberType ron_; + + }; // binary_rons_member + + +// class tied --------------------------------------------------------------// // A helper for conveniently assigning the two values from a pair - // into separate variables. The idea for this comes from Jaakko J„rvi's + // into separate variables. The idea for this comes from Jaakko JŠrvi's // Binder/Lambda Library. // Constributed by Jeremy Siek @@ -116,4 +163,3 @@ namespace boost } // namespace boost #endif // BOOST_UTILITY_HPP - diff --git a/iterator_adaptors.htm b/iterator_adaptors.htm index 3ac10df..937ec3a 100644 --- a/iterator_adaptors.htm +++ b/iterator_adaptors.htm @@ -93,7 +93,7 @@ Function Output Iterator Adaptor -

Dave +

Dave Abrahams started the library, applying policy class technique and handling const/non-const iterator interactions. He also contributed the @@ -102,7 +102,7 @@ counting_iterator_generator to cover all incrementable types. He edited most of the documentation, sometimes heavily.
- Jeremy + Jeremy Siek contributed the transform iterator adaptor, the integer-only version of counting_iterator_generator, @@ -860,7 +860,7 @@ bool operator==(const iterator_adaptor<B1,P,V1,R1,P1,C,D>&,


Revised - 19 Mar 2001 + 12 Jul 2001

© Copyright Dave Abrahams and Jeremy Siek 2001. Permission to copy, diff --git a/tie.html b/tie.html index 0f8caa7..933ebd3 100644 --- a/tie.html +++ b/tie.html @@ -126,7 +126,7 @@ The output is:
Copyright © 2000 -Jeremy Siek, +Jeremy Siek, Univ.of Notre Dame (jsiek@lsc.nd.edu)
Lie-Quan Lee, Univ.of Notre Dame (llee1@lsc.nd.edu)