Sha256: 51a00b16b3c8875760e7dcb5a7ca4c6afdb625dbaad54a42d53797088e93726a

Contents?: true

Size: 1.49 KB

Versions: 29

Compression:

Stored size: 1.49 KB

Contents

// Copyright Daniel Wallin 2006. Use, modification and distribution is
// subject to 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)

#ifndef BOOST_PARAMETER_SET_060912_HPP
# define BOOST_PARAMETER_SET_060912_HPP

# include <boost/detail/workaround.hpp>

# if !BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564)) \
  && !BOOST_WORKAROUND(__GNUC__, < 3)
#  include <boost/mpl/insert.hpp>
#  include <boost/mpl/set/set0.hpp>
#  include <boost/mpl/has_key.hpp>

namespace boost { namespace parameter { namespace aux {

typedef mpl::set0<> set0;

template <class Set, class K>
struct insert_
{
    typedef typename mpl::insert<Set, K>::type type;
};

template <class Set, class K>
struct has_key_
{
    typedef typename mpl::has_key<Set, K>::type type;
};

}}} // namespace boost::parameter::aux

# else

#  include <boost/mpl/list.hpp>
#  include <boost/mpl/end.hpp>
#  include <boost/mpl/find.hpp>
#  include <boost/mpl/not.hpp>
#  include <boost/mpl/push_front.hpp>

namespace boost { namespace parameter { namespace aux {

typedef mpl::list0<> set0;

template <class Set, class K>
struct insert_
{
    typedef typename mpl::push_front<Set, K>::type type;
};

template <class Set, class K>
struct has_key_
{
    typedef typename mpl::find<Set, K>::type iter;
    typedef mpl::not_<
        is_same<iter, typename mpl::end<Set>::type> 
    > type;
};

}}} // namespace boost::parameter::aux

# endif


#endif // BOOST_PARAMETER_SET_060912_HPP

Version data entries

29 entries across 29 versions & 2 rubygems

Version Path
passenger-5.0.24 src/cxx_supportlib/vendor-modified/boost/parameter/aux_/set.hpp
passenger-5.0.23 src/cxx_supportlib/vendor-modified/boost/parameter/aux_/set.hpp
passenger-5.0.22 src/cxx_supportlib/vendor-modified/boost/parameter/aux_/set.hpp
passenger-5.0.21 src/cxx_supportlib/vendor-modified/boost/parameter/aux_/set.hpp
passenger-5.0.20 src/cxx_supportlib/vendor-modified/boost/parameter/aux_/set.hpp
passenger-5.0.19 src/cxx_supportlib/vendor-modified/boost/parameter/aux_/set.hpp
passenger-5.0.18 ext/boost/parameter/aux_/set.hpp
passenger-5.0.17 ext/boost/parameter/aux_/set.hpp
passenger-5.0.16 ext/boost/parameter/aux_/set.hpp
passenger-5.0.15 ext/boost/parameter/aux_/set.hpp
passenger-5.0.14 ext/boost/parameter/aux_/set.hpp
passenger-5.0.13 ext/boost/parameter/aux_/set.hpp
passenger-5.0.11 ext/boost/parameter/aux_/set.hpp
passenger-5.0.10 ext/boost/parameter/aux_/set.hpp
passenger-5.0.9 ext/boost/parameter/aux_/set.hpp
passenger-5.0.8 ext/boost/parameter/aux_/set.hpp
buncher-1.0.5 ext/boost/1.57.0/include/boost//parameter/aux_/set.hpp
passenger-5.0.7 ext/boost/parameter/aux_/set.hpp
passenger-5.0.6 ext/boost/parameter/aux_/set.hpp
passenger-5.0.5 ext/boost/parameter/aux_/set.hpp