Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r57332 - in sandbox/statistics/detail/mpl: . boost boost/statistics boost/statistics/detail boost/statistics/detail/mpl
From: erwann.rogard_at_[hidden]
Date: 2009-11-03 11:59:31


Author: e_r
Date: 2009-11-03 11:59:30 EST (Tue, 03 Nov 2009)
New Revision: 57332
URL: http://svn.boost.org/trac/boost/changeset/57332

Log:
a
Added:
   sandbox/statistics/detail/mpl/
   sandbox/statistics/detail/mpl/boost/
   sandbox/statistics/detail/mpl/boost/statistics/
   sandbox/statistics/detail/mpl/boost/statistics/detail/
   sandbox/statistics/detail/mpl/boost/statistics/detail/mpl/
   sandbox/statistics/detail/mpl/boost/statistics/detail/mpl/nested_type.hpp (contents, props changed)

Added: sandbox/statistics/detail/mpl/boost/statistics/detail/mpl/nested_type.hpp
==============================================================================
--- (empty file)
+++ sandbox/statistics/detail/mpl/boost/statistics/detail/mpl/nested_type.hpp 2009-11-03 11:59:30 EST (Tue, 03 Nov 2009)
@@ -0,0 +1,30 @@
+////////////////////////////////////////////////////////////////////////////////
+// nested_type.hpp //
+////////////////////////////////////////////////////////////////////////////////
+#ifndef BOOST_STATISTICS_DETAIL_MPL_NESTED_TYPE_HPP_ER_2009
+#define BOOST_STATISTICS_DETAIL_MPL_NESTED_TYPE_HPP_ER_2009
+#include <boost/mpl/identity.hpp>
+#include <boost/mpl/has_xxx.hpp>
+#include <boost/mpl/eval_if.hpp>
+
+namespace boost{
+namespace statistics{
+namespace detail{
+namespace mpl{
+ BOOST_MPL_HAS_XXX_TRAIT_DEF(type);
+
+// Provided by Steven Watanabe in
+// news://news.gmane.org:119/gma8hc$2a0$1@ger.gmane.org
+template<class T>
+struct nested_type :
+ boost::mpl::eval_if<has_type<T>,
+ T,
+ boost::mpl::identity<T> >
+{};
+
+}// mpl
+}// detail
+}// statistics
+}// boost
+
+#endif


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