Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r79746 - sandbox/type_erasure/boost/type_erasure
From: steven_at_[hidden]
Date: 2012-07-25 14:42:00


Author: steven_watanabe
Date: 2012-07-25 14:41:59 EDT (Wed, 25 Jul 2012)
New Revision: 79746
URL: http://svn.boost.org/trac/boost/changeset/79746

Log:
Add an example to rebind_any.
Text files modified:
   sandbox/type_erasure/boost/type_erasure/rebind_any.hpp | 6 ++++++
   1 files changed, 6 insertions(+), 0 deletions(-)

Modified: sandbox/type_erasure/boost/type_erasure/rebind_any.hpp
==============================================================================
--- sandbox/type_erasure/boost/type_erasure/rebind_any.hpp (original)
+++ sandbox/type_erasure/boost/type_erasure/rebind_any.hpp 2012-07-25 14:41:59 EDT (Wed, 25 Jul 2012)
@@ -32,6 +32,12 @@
  *
  * @pre Any must be a specialization of @ref any or a base
  * class of such a specialization.
+ *
+ * \code
+ * rebind_any<any<Concept>, _a>::type -> any<Concept, _a>
+ * rebind_any<any<Concept>, _b&>::type -> any<Concept, _b&>
+ * rebind_any<any<Concept>, int>::type -> int
+ * \endcode
  */
 template<class Any, class T>
 struct rebind_any


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