Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r78484 - in sandbox/type_erasure/boost/type_erasure: . detail
From: steven_at_[hidden]
Date: 2012-05-15 13:54:15


Author: steven_watanabe
Date: 2012-05-15 13:54:14 EDT (Tue, 15 May 2012)
New Revision: 78484
URL: http://svn.boost.org/trac/boost/changeset/78484

Log:
Some doc cleanup.
Text files modified:
   sandbox/type_erasure/boost/type_erasure/builtin.hpp | 4 ++--
   sandbox/type_erasure/boost/type_erasure/detail/construct.hpp | 2 --
   sandbox/type_erasure/boost/type_erasure/iterator.hpp | 37 ++++++++++++++++++++++++++++++++-----
   sandbox/type_erasure/boost/type_erasure/placeholder.hpp | 4 ++--
   sandbox/type_erasure/boost/type_erasure/tuple.hpp | 6 ++++++
   5 files changed, 42 insertions(+), 11 deletions(-)

Modified: sandbox/type_erasure/boost/type_erasure/builtin.hpp
==============================================================================
--- sandbox/type_erasure/boost/type_erasure/builtin.hpp (original)
+++ sandbox/type_erasure/boost/type_erasure/builtin.hpp 2012-05-15 13:54:14 EDT (Tue, 15 May 2012)
@@ -48,7 +48,7 @@
  *
  * \note This concept is defined to match C++ 2003,
  * [lib.copyconstructible]. It is not equivalent to
- * the concept of the same name in C++0x.
+ * the concept of the same name in C++11.
  */
 template<class T = _self>
 struct copy_constructible :
@@ -78,7 +78,7 @@
 
 /**
  * Enables runtime type information. This is required
- * to use @ref any_cast or @ref typeid_of.
+ * if you want to use @ref any_cast or @ref typeid_of.
  */
 template<class T = _self>
 struct typeid_

Modified: sandbox/type_erasure/boost/type_erasure/detail/construct.hpp
==============================================================================
--- sandbox/type_erasure/boost/type_erasure/detail/construct.hpp (original)
+++ sandbox/type_erasure/boost/type_erasure/detail/construct.hpp 2012-05-15 13:54:14 EDT (Tue, 15 May 2012)
@@ -8,8 +8,6 @@
 //
 // $Id$
 
-// NO #include GUARD.
-
 #if !defined(BOOST_PP_IS_ITERATING)
 
 #ifndef BOOST_TYPE_ERASURE_DETAIL_CONSTRUCT_HPP_INCLUDED

Modified: sandbox/type_erasure/boost/type_erasure/iterator.hpp
==============================================================================
--- sandbox/type_erasure/boost/type_erasure/iterator.hpp (original)
+++ sandbox/type_erasure/boost/type_erasure/iterator.hpp 2012-05-15 13:54:14 EDT (Tue, 15 May 2012)
@@ -63,9 +63,8 @@
 template<
     class Traversal,
     class T = _self,
- class Reference = ::boost::use_default,
- class DifferenceType = ::std::ptrdiff_t,
- class ValueType = typename deduced<iterator_value_type<T> >::type
+ class Reference = boost::use_default,
+ class DifferenceType = std::ptrdiff_t
>
 struct iterator
 {
@@ -74,6 +73,34 @@
     typedef DifferenceType difference_type;
 };
 
+template<
+ class T = _self,
+ class Reference = boost::use_default,
+ class DifferenceType = std::ptrdiff_t
+>
+struct forward_iterator :
+ iterator<boost::forward_traversal_tag, T, Reference, DifferenceType>
+{};
+
+template<
+ class T = _self,
+ class Reference = boost::use_default,
+ class DifferenceType = std::ptrdiff_t
+>
+struct bidirectional_iterator :
+ iterator<boost::bidirectional_traversal_tag, T, Reference, DifferenceType>
+{};
+
+template<
+ class T = _self,
+ class Reference = boost::use_default,
+ class DifferenceType = std::ptrdiff_t
+>
+struct random_access_iterator :
+ iterator<boost::random_access_traversal_tag, T, Reference, DifferenceType>
+{
+};
+
 #else
 
 /** INTERNAL ONLY */
@@ -155,8 +182,6 @@
     typedef DifferenceType difference_type;
 };
 
-#endif
-
 template<
     class T = _self,
     class Reference = ::boost::use_default,
@@ -188,6 +213,8 @@
 {
 };
 
+#endif
+
 /// \cond show_operators
 
 template<class T, class Reference, class DifferenceType, class ValueType, class Base>

Modified: sandbox/type_erasure/boost/type_erasure/placeholder.hpp
==============================================================================
--- sandbox/type_erasure/boost/type_erasure/placeholder.hpp (original)
+++ sandbox/type_erasure/boost/type_erasure/placeholder.hpp 2012-05-15 13:54:14 EDT (Tue, 15 May 2012)
@@ -16,8 +16,8 @@
 
 /**
  * Placeholders are used heavily throughout the library.
- * Every placeholder must derive from @ref placeholder
- * using CRTP. The library provides a number of placeholders,
+ * Every placeholder must derive from @ref placeholder.
+ * The library provides a number of placeholders,
  * out of the box, but you are welcome to define your own,
  * if you want more descriptive names. The placeholder
  * @ref _self is special in that it is used as the default

Modified: sandbox/type_erasure/boost/type_erasure/tuple.hpp
==============================================================================
--- sandbox/type_erasure/boost/type_erasure/tuple.hpp (original)
+++ sandbox/type_erasure/boost/type_erasure/tuple.hpp 2012-05-15 13:54:14 EDT (Tue, 15 May 2012)
@@ -18,6 +18,9 @@
 
 #ifdef BOOST_TYPE_ERASURE_DOXYGEN
 
+namespace boost {
+namespace type_erasure {
+
 /**
  * @ref tuple is a Boost.Fusion Random Access Sequence containing
  * @ref any "anys". Concept is interpreted in the same way as for
@@ -41,6 +44,9 @@
 template<int N, class Concept, class... T>
 const any<Concept, TN>& get(const tuple<Concept, T...>& arg);
 
+}
+}
+
 #elif !defined(BOOST_NO_VARIADIC_TEMPLATES) && !defined(BOOST_NO_RVALUE_REFERENCES)
 
 #include <boost/mpl/int.hpp>


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk