annotate DEPENDENCIES/generic/include/boost/mpl/vector/aux_/item.hpp @ 133:4acb5d8d80b6 tip

Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author Chris Cannam
date Tue, 30 Jul 2019 12:25:44 +0100
parents c530137014c0
children
rev   line source
Chris@16 1
Chris@16 2 #ifndef BOOST_MPL_VECTOR_AUX_ITEM_HPP_INCLUDED
Chris@16 3 #define BOOST_MPL_VECTOR_AUX_ITEM_HPP_INCLUDED
Chris@16 4
Chris@16 5 // Copyright Aleksey Gurtovoy 2000-2004
Chris@16 6 //
Chris@16 7 // Distributed under the Boost Software License, Version 1.0.
Chris@16 8 // (See accompanying file LICENSE_1_0.txt or copy at
Chris@16 9 // http://www.boost.org/LICENSE_1_0.txt)
Chris@16 10 //
Chris@16 11 // See http://www.boost.org/libs/mpl for documentation.
Chris@16 12
Chris@101 13 // $Id$
Chris@101 14 // $Date$
Chris@101 15 // $Revision$
Chris@16 16
Chris@16 17 #include <boost/mpl/long.hpp>
Chris@16 18 #include <boost/mpl/void.hpp>
Chris@16 19 #include <boost/mpl/next_prior.hpp>
Chris@16 20 #include <boost/mpl/aux_/type_wrapper.hpp>
Chris@16 21 #include <boost/mpl/aux_/config/typeof.hpp>
Chris@16 22 #include <boost/mpl/aux_/config/ctps.hpp>
Chris@16 23
Chris@16 24 namespace boost { namespace mpl {
Chris@16 25
Chris@16 26 #if defined(BOOST_MPL_CFG_TYPEOF_BASED_SEQUENCES)
Chris@16 27
Chris@16 28 template<
Chris@16 29 typename T
Chris@16 30 , typename Base
Chris@16 31 , int at_front = 0
Chris@16 32 >
Chris@16 33 struct v_item
Chris@16 34 : Base
Chris@16 35 {
Chris@16 36 typedef typename Base::upper_bound_ index_;
Chris@16 37 typedef typename next<index_>::type upper_bound_;
Chris@16 38 typedef typename next<typename Base::size>::type size;
Chris@16 39 typedef Base base;
Chris@16 40 typedef v_item type;
Chris@16 41
Chris@16 42 // agurt 10/sep/04: MWCW <= 9.3 workaround here and below; the compiler
Chris@16 43 // breaks if using declaration comes _before_ the new overload
Chris@16 44 static aux::type_wrapper<T> item_(index_);
Chris@16 45 using Base::item_;
Chris@16 46 };
Chris@16 47
Chris@16 48 template<
Chris@16 49 typename T
Chris@16 50 , typename Base
Chris@16 51 >
Chris@16 52 struct v_item<T,Base,1>
Chris@16 53 : Base
Chris@16 54 {
Chris@16 55 typedef typename prior<typename Base::lower_bound_>::type index_;
Chris@16 56 typedef index_ lower_bound_;
Chris@16 57 typedef typename next<typename Base::size>::type size;
Chris@16 58 typedef Base base;
Chris@16 59 typedef v_item type;
Chris@16 60
Chris@16 61 static aux::type_wrapper<T> item_(index_);
Chris@16 62 using Base::item_;
Chris@16 63 };
Chris@16 64
Chris@16 65 // "erasure" item
Chris@16 66 template<
Chris@16 67 typename Base
Chris@16 68 , int at_front
Chris@16 69 >
Chris@16 70 struct v_mask
Chris@16 71 : Base
Chris@16 72 {
Chris@16 73 typedef typename prior<typename Base::upper_bound_>::type index_;
Chris@16 74 typedef index_ upper_bound_;
Chris@16 75 typedef typename prior<typename Base::size>::type size;
Chris@16 76 typedef Base base;
Chris@16 77 typedef v_mask type;
Chris@16 78
Chris@16 79 static aux::type_wrapper<void_> item_(index_);
Chris@16 80 using Base::item_;
Chris@16 81 };
Chris@16 82
Chris@16 83 template<
Chris@16 84 typename Base
Chris@16 85 >
Chris@16 86 struct v_mask<Base,1>
Chris@16 87 : Base
Chris@16 88 {
Chris@16 89 typedef typename Base::lower_bound_ index_;
Chris@16 90 typedef typename next<index_>::type lower_bound_;
Chris@16 91 typedef typename prior<typename Base::size>::type size;
Chris@16 92 typedef Base base;
Chris@16 93 typedef v_mask type;
Chris@16 94
Chris@16 95 static aux::type_wrapper<void_> item_(index_);
Chris@16 96 using Base::item_;
Chris@16 97 };
Chris@16 98
Chris@16 99 #endif // BOOST_MPL_CFG_TYPEOF_BASED_SEQUENCES
Chris@16 100
Chris@16 101 }}
Chris@16 102
Chris@16 103 #endif // BOOST_MPL_VECTOR_AUX_ITEM_HPP_INCLUDED