Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r77802 - in trunk/boost/fusion/container/deque: . detail
From: joel_at_[hidden]
Date: 2012-04-07 03:34:03


Author: djowel
Date: 2012-04-07 03:34:00 EDT (Sat, 07 Apr 2012)
New Revision: 77802
URL: http://svn.boost.org/trac/boost/changeset/77802

Log:
+ bumped copyright date
+ mpl::int_ optimizations
Text files modified:
   trunk/boost/fusion/container/deque/back_extended_deque.hpp | 20 +++++++++-----------
   trunk/boost/fusion/container/deque/convert.hpp | 2 +-
   trunk/boost/fusion/container/deque/deque.hpp | 2 +-
   trunk/boost/fusion/container/deque/deque_fwd.hpp | 2 +-
   trunk/boost/fusion/container/deque/deque_iterator.hpp | 2 +-
   trunk/boost/fusion/container/deque/detail/as_deque.hpp | 2 +-
   trunk/boost/fusion/container/deque/detail/at_impl.hpp | 2 +-
   trunk/boost/fusion/container/deque/detail/begin_impl.hpp | 2 +-
   trunk/boost/fusion/container/deque/detail/convert_impl.hpp | 2 +-
   trunk/boost/fusion/container/deque/detail/deque_forward_ctor.hpp | 2 +-
   trunk/boost/fusion/container/deque/detail/deque_initial_size.hpp | 2 +-
   trunk/boost/fusion/container/deque/detail/deque_keyed_values.hpp | 2 +-
   trunk/boost/fusion/container/deque/detail/deque_keyed_values_call.hpp | 2 +-
   trunk/boost/fusion/container/deque/detail/end_impl.hpp | 2 +-
   trunk/boost/fusion/container/deque/detail/keyed_element.hpp | 2 +-
   trunk/boost/fusion/container/deque/detail/value_at_impl.hpp | 2 +-
   trunk/boost/fusion/container/deque/front_extended_deque.hpp | 21 ++++++++-------------
   trunk/boost/fusion/container/deque/limits.hpp | 2 +-
   18 files changed, 33 insertions(+), 40 deletions(-)

Modified: trunk/boost/fusion/container/deque/back_extended_deque.hpp
==============================================================================
--- trunk/boost/fusion/container/deque/back_extended_deque.hpp (original)
+++ trunk/boost/fusion/container/deque/back_extended_deque.hpp 2012-04-07 03:34:00 EDT (Sat, 07 Apr 2012)
@@ -1,21 +1,18 @@
 /*=============================================================================
- Copyright (c) 2005-2011 Joel de Guzman
+ Copyright (c) 2005-2012 Joel de Guzman
     Copyright (c) 2005-2006 Dan Marsden
 
- Distributed under the Boost Software License, Version 1.0. (See accompanying
+ Distributed under the Boost Software License, Version 1.0. (See accompanying
     file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 ==============================================================================*/
 #if !defined(BOOST_FUSION_BACK_EXTENDED_DEQUE_26112006_2209)
 #define BOOST_FUSION_BACK_EXTENDED_DEQUE_26112006_2209
 
-#include <boost/fusion/container/deque/detail/keyed_element.hpp>
 #include <boost/mpl/int.hpp>
-#include <boost/mpl/plus.hpp>
+
 #include <boost/fusion/sequence/intrinsic/size.hpp>
 #include <boost/fusion/support/sequence_base.hpp>
-
-#include <boost/type_traits/add_const.hpp>
-#include <boost/type_traits/add_reference.hpp>
+#include <boost/fusion/container/deque/detail/keyed_element.hpp>
 
 namespace boost { namespace fusion {
     template<typename Deque, typename T>
@@ -25,11 +22,12 @@
     {
         typedef detail::keyed_element<typename Deque::next_up, T, Deque> base;
         typedef typename Deque::next_down next_down;
- typedef mpl::int_<mpl::plus<typename Deque::next_up, mpl::int_<1> >::value> next_up;
- typedef mpl::plus<typename result_of::size<Deque>::type, mpl::int_<1> > size;
+ typedef mpl::int_<(Deque::next_up::value + 1)> next_up;
+ typedef mpl::int_<(result_of::size<Deque>::value + 1)> size;
 
- back_extended_deque(Deque const& deque, typename add_reference<typename add_const<T>::type>::type t)
- : base(t, deque)
+ template <typename Arg>
+ back_extended_deque(Deque const& deque, Arg const& val)
+ : base(val, deque)
         {}
     };
 }}

Modified: trunk/boost/fusion/container/deque/convert.hpp
==============================================================================
--- trunk/boost/fusion/container/deque/convert.hpp (original)
+++ trunk/boost/fusion/container/deque/convert.hpp 2012-04-07 03:34:00 EDT (Sat, 07 Apr 2012)
@@ -1,5 +1,5 @@
 /*=============================================================================
- Copyright (c) 2005-2011 Joel de Guzman
+ Copyright (c) 2005-2012 Joel de Guzman
     Copyright (c) 2006 Dan Marsden
 
     Distributed under the Boost Software License, Version 1.0. (See accompanying

Modified: trunk/boost/fusion/container/deque/deque.hpp
==============================================================================
--- trunk/boost/fusion/container/deque/deque.hpp (original)
+++ trunk/boost/fusion/container/deque/deque.hpp 2012-04-07 03:34:00 EDT (Sat, 07 Apr 2012)
@@ -1,5 +1,5 @@
 /*=============================================================================
- Copyright (c) 2005-2011 Joel de Guzman
+ Copyright (c) 2005-2012 Joel de Guzman
     Copyright (c) 2005-2006 Dan Marsden
 
     Distributed under the Boost Software License, Version 1.0. (See accompanying

Modified: trunk/boost/fusion/container/deque/deque_fwd.hpp
==============================================================================
--- trunk/boost/fusion/container/deque/deque_fwd.hpp (original)
+++ trunk/boost/fusion/container/deque/deque_fwd.hpp 2012-04-07 03:34:00 EDT (Sat, 07 Apr 2012)
@@ -1,5 +1,5 @@
 /*=============================================================================
- Copyright (c) 2005-2011 Joel de Guzman
+ Copyright (c) 2005-2012 Joel de Guzman
     Copyright (c) 2005-2007 Dan Marsden
 
     Distributed under the Boost Software License, Version 1.0. (See accompanying

Modified: trunk/boost/fusion/container/deque/deque_iterator.hpp
==============================================================================
--- trunk/boost/fusion/container/deque/deque_iterator.hpp (original)
+++ trunk/boost/fusion/container/deque/deque_iterator.hpp 2012-04-07 03:34:00 EDT (Sat, 07 Apr 2012)
@@ -1,5 +1,5 @@
 /*=============================================================================
- Copyright (c) 2005-2011 Joel de Guzman
+ Copyright (c) 2005-2012 Joel de Guzman
     Copyright (c) 2005-2006 Dan Marsden
 
     Distributed under the Boost Software License, Version 1.0. (See accompanying

Modified: trunk/boost/fusion/container/deque/detail/as_deque.hpp
==============================================================================
--- trunk/boost/fusion/container/deque/detail/as_deque.hpp (original)
+++ trunk/boost/fusion/container/deque/detail/as_deque.hpp 2012-04-07 03:34:00 EDT (Sat, 07 Apr 2012)
@@ -1,5 +1,5 @@
 /*=============================================================================
- Copyright (c) 2005-2011 Joel de Guzman
+ Copyright (c) 2005-2012 Joel de Guzman
     Copyright (c) 2006 Dan Marsden
 
     Distributed under the Boost Software License, Version 1.0. (See accompanying

Modified: trunk/boost/fusion/container/deque/detail/at_impl.hpp
==============================================================================
--- trunk/boost/fusion/container/deque/detail/at_impl.hpp (original)
+++ trunk/boost/fusion/container/deque/detail/at_impl.hpp 2012-04-07 03:34:00 EDT (Sat, 07 Apr 2012)
@@ -1,5 +1,5 @@
 /*=============================================================================
- Copyright (c) 2005-2011 Joel de Guzman
+ Copyright (c) 2005-2012 Joel de Guzman
     Copyright (c) 2005-2006 Dan Marsden
 
     Distributed under the Boost Software License, Version 1.0. (See accompanying

Modified: trunk/boost/fusion/container/deque/detail/begin_impl.hpp
==============================================================================
--- trunk/boost/fusion/container/deque/detail/begin_impl.hpp (original)
+++ trunk/boost/fusion/container/deque/detail/begin_impl.hpp 2012-04-07 03:34:00 EDT (Sat, 07 Apr 2012)
@@ -1,5 +1,5 @@
 /*=============================================================================
- Copyright (c) 2005-2011 Joel de Guzman
+ Copyright (c) 2005-2012 Joel de Guzman
     Copyright (c) 2005-2006 Dan Marsden
 
     Distributed under the Boost Software License, Version 1.0. (See accompanying

Modified: trunk/boost/fusion/container/deque/detail/convert_impl.hpp
==============================================================================
--- trunk/boost/fusion/container/deque/detail/convert_impl.hpp (original)
+++ trunk/boost/fusion/container/deque/detail/convert_impl.hpp 2012-04-07 03:34:00 EDT (Sat, 07 Apr 2012)
@@ -1,5 +1,5 @@
 /*=============================================================================
- Copyright (c) 2005-2011 Joel de Guzman
+ Copyright (c) 2005-2012 Joel de Guzman
     Copyright (c) 2005-2006 Dan Marsden
 
     Distributed under the Boost Software License, Version 1.0. (See accompanying

Modified: trunk/boost/fusion/container/deque/detail/deque_forward_ctor.hpp
==============================================================================
--- trunk/boost/fusion/container/deque/detail/deque_forward_ctor.hpp (original)
+++ trunk/boost/fusion/container/deque/detail/deque_forward_ctor.hpp 2012-04-07 03:34:00 EDT (Sat, 07 Apr 2012)
@@ -1,5 +1,5 @@
 /*=============================================================================
- Copyright (c) 2005-2011 Joel de Guzman
+ Copyright (c) 2005-2012 Joel de Guzman
     Copyright (c) 2005-2006 Dan Marsden
 
     Distributed under the Boost Software License, Version 1.0. (See accompanying

Modified: trunk/boost/fusion/container/deque/detail/deque_initial_size.hpp
==============================================================================
--- trunk/boost/fusion/container/deque/detail/deque_initial_size.hpp (original)
+++ trunk/boost/fusion/container/deque/detail/deque_initial_size.hpp 2012-04-07 03:34:00 EDT (Sat, 07 Apr 2012)
@@ -1,5 +1,5 @@
 /*=============================================================================
- Copyright (c) 2005-2011 Joel de Guzman
+ Copyright (c) 2005-2012 Joel de Guzman
     Copyright (c) 2005-2006 Dan Marsden
 
     Distributed under the Boost Software License, Version 1.0. (See accompanying

Modified: trunk/boost/fusion/container/deque/detail/deque_keyed_values.hpp
==============================================================================
--- trunk/boost/fusion/container/deque/detail/deque_keyed_values.hpp (original)
+++ trunk/boost/fusion/container/deque/detail/deque_keyed_values.hpp 2012-04-07 03:34:00 EDT (Sat, 07 Apr 2012)
@@ -1,5 +1,5 @@
 /*=============================================================================
- Copyright (c) 2005-2011 Joel de Guzman
+ Copyright (c) 2005-2012 Joel de Guzman
     Copyright (c) 2005-2006 Dan Marsden
 
     Distributed under the Boost Software License, Version 1.0. (See accompanying

Modified: trunk/boost/fusion/container/deque/detail/deque_keyed_values_call.hpp
==============================================================================
--- trunk/boost/fusion/container/deque/detail/deque_keyed_values_call.hpp (original)
+++ trunk/boost/fusion/container/deque/detail/deque_keyed_values_call.hpp 2012-04-07 03:34:00 EDT (Sat, 07 Apr 2012)
@@ -1,5 +1,5 @@
 /*=============================================================================
- Copyright (c) 2005-2011 Joel de Guzman
+ Copyright (c) 2005-2012 Joel de Guzman
     Copyright (c) 2005-2006 Dan Marsden
 
     Distributed under the Boost Software License, Version 1.0. (See accompanying

Modified: trunk/boost/fusion/container/deque/detail/end_impl.hpp
==============================================================================
--- trunk/boost/fusion/container/deque/detail/end_impl.hpp (original)
+++ trunk/boost/fusion/container/deque/detail/end_impl.hpp 2012-04-07 03:34:00 EDT (Sat, 07 Apr 2012)
@@ -1,5 +1,5 @@
 /*=============================================================================
- Copyright (c) 2005-2011 Joel de Guzman
+ Copyright (c) 2005-2012 Joel de Guzman
     Copyright (c) 2005-2006 Dan Marsden
 
     Distributed under the Boost Software License, Version 1.0. (See accompanying

Modified: trunk/boost/fusion/container/deque/detail/keyed_element.hpp
==============================================================================
--- trunk/boost/fusion/container/deque/detail/keyed_element.hpp (original)
+++ trunk/boost/fusion/container/deque/detail/keyed_element.hpp 2012-04-07 03:34:00 EDT (Sat, 07 Apr 2012)
@@ -1,5 +1,5 @@
 /*=============================================================================
- Copyright (c) 2005-2011 Joel de Guzman
+ Copyright (c) 2005-2012 Joel de Guzman
     Copyright (c) 2005-2006 Dan Marsden
 
     Distributed under the Boost Software License, Version 1.0. (See accompanying

Modified: trunk/boost/fusion/container/deque/detail/value_at_impl.hpp
==============================================================================
--- trunk/boost/fusion/container/deque/detail/value_at_impl.hpp (original)
+++ trunk/boost/fusion/container/deque/detail/value_at_impl.hpp 2012-04-07 03:34:00 EDT (Sat, 07 Apr 2012)
@@ -1,5 +1,5 @@
 /*=============================================================================
- Copyright (c) 2005-2011 Joel de Guzman
+ Copyright (c) 2005-2012 Joel de Guzman
     Copyright (c) 2005-2006 Dan Marsden
 
     Distributed under the Boost Software License, Version 1.0. (See accompanying

Modified: trunk/boost/fusion/container/deque/front_extended_deque.hpp
==============================================================================
--- trunk/boost/fusion/container/deque/front_extended_deque.hpp (original)
+++ trunk/boost/fusion/container/deque/front_extended_deque.hpp 2012-04-07 03:34:00 EDT (Sat, 07 Apr 2012)
@@ -1,5 +1,5 @@
 /*=============================================================================
- Copyright (c) 2005-2011 Joel de Guzman
+ Copyright (c) 2005-2012 Joel de Guzman
     Copyright (c) 2005-2006 Dan Marsden
 
     Distributed under the Boost Software License, Version 1.0. (See accompanying
@@ -8,16 +8,10 @@
 #if !defined(BOOST_FUSION_FRONT_EXTENDED_DEQUE_26112006_2209)
 #define BOOST_FUSION_FRONT_EXTENDED_DEQUE_26112006_2209
 
-#include <boost/fusion/container/deque/detail/keyed_element.hpp>
 #include <boost/mpl/int.hpp>
-#include <boost/mpl/minus.hpp>
-#include <boost/mpl/plus.hpp>
-#include <boost/fusion/sequence/intrinsic/size.hpp>
-
-#include <boost/type_traits/add_const.hpp>
-#include <boost/type_traits/add_reference.hpp>
-
 #include <boost/fusion/support/sequence_base.hpp>
+#include <boost/fusion/sequence/intrinsic/size.hpp>
+#include <boost/fusion/container/deque/detail/keyed_element.hpp>
 
 namespace boost { namespace fusion
 {
@@ -27,12 +21,13 @@
           sequence_base<front_extended_deque<Deque, T> >
     {
         typedef detail::keyed_element<typename Deque::next_down, T, Deque> base;
- typedef mpl::int_<mpl::minus<typename Deque::next_down, mpl::int_<1> >::value> next_down;
+ typedef mpl::int_<(Deque::next_down::value - 1)> next_down;
         typedef typename Deque::next_up next_up;
- typedef mpl::plus<typename result_of::size<Deque>::type, mpl::int_<1> > size;
+ typedef mpl::int_<(result_of::size<Deque>::value + 1)> size;
 
- front_extended_deque(Deque const& deque, typename add_reference<typename add_const<T>::type>::type t)
- : base(t, deque)
+ template <typename Arg>
+ front_extended_deque(Deque const& deque, Arg const& val)
+ : base(val, deque)
         {}
     };
 }}

Modified: trunk/boost/fusion/container/deque/limits.hpp
==============================================================================
--- trunk/boost/fusion/container/deque/limits.hpp (original)
+++ trunk/boost/fusion/container/deque/limits.hpp 2012-04-07 03:34:00 EDT (Sat, 07 Apr 2012)
@@ -1,5 +1,5 @@
 /*=============================================================================
- Copyright (c) 2005-2011 Joel de Guzman
+ Copyright (c) 2005-2012 Joel de Guzman
     Copyright (c) 2005-2006 Dan Marsden
 
     Distributed under the Boost Software License, Version 1.0. (See accompanying


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