Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r52905 - trunk/boost/pending
From: asutton_at_[hidden]
Date: 2009-05-11 13:32:14


Author: asutton
Date: 2009-05-11 13:32:13 EDT (Mon, 11 May 2009)
New Revision: 52905
URL: http://svn.boost.org/trac/boost/changeset/52905

Log:
Added a metafunction to determine if a property is no_property.

Text files modified:
   trunk/boost/pending/property.hpp | 7 +++++++
   1 files changed, 7 insertions(+), 0 deletions(-)

Modified: trunk/boost/pending/property.hpp
==============================================================================
--- trunk/boost/pending/property.hpp (original)
+++ trunk/boost/pending/property.hpp 2009-05-11 13:32:13 EDT (Mon, 11 May 2009)
@@ -106,6 +106,13 @@
   }
 
  namespace detail {
+
+ /** This trait returns true if T is no_property. */
+ template <typename T>
+ struct is_no_property
+ : mpl::bool_<is_same<T, no_property>::value>
+ { };
+
 #if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION)
     /** @internal @name Retag Property List
      * This metafunction is used internally to normalize a property if it is


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