/*============================================================================= Copyright (c) 2001-2006 Joel de Guzman Copyright (c) 2005-2006 Dan Marsden 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_DEQUE_26112006_1649) #define BOOST_FUSION_DEQUE_26112006_1649 #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include namespace boost { namespace fusion { struct deque_tag; template struct deque : detail::deque_keyed_values::type, sequence_base > { typedef deque_tag fusion_tag; typedef typename detail::deque_keyed_values::type base; typedef typename detail::deque_initial_size::type size; typedef mpl::int_ next_up; typedef mpl::int_< mpl::if_ >, mpl::int_<0>, mpl::int_<-1> >::type::value> next_down; typedef mpl::false_ is_view; #include deque() {} explicit deque(typename add_reference::type>::type t0) : base(t0, detail::nil_keyed_element()) {} template deque(deque const& seq) : base(seq) {} template deque(Sequence const& seq, typename disable_if >::type* dummy = 0) : base(base::from_iterator(fusion::begin(seq))) {} template deque& operator=(deque const& rhs) { base::operator=(rhs); return *this; } template deque& operator=(T const& rhs) { base::operator=(rhs); return *this; } }; }} #endif