/usr/include/boost/multi_index/detail
Edit: /usr/include/boost/multi_index/detail/promotes_arg.hpp (1886B)
/* Copyright 2003-2017 Joaquin M Lopez Munoz.
* 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)
*
* See http://www.boost.org/libs/multi_index for library home page.
*/
#ifndef BOOST_MULTI_INDEX_DETAIL_PROMOTES_ARG_HPP
#define BOOST_MULTI_INDEX_DETAIL_PROMOTES_ARG_HPP
#if defined(_MSC_VER)
#pragma once
#endif
#include
/* keep it first to prevent nasty warns in MSVC */
#include
/* Metafunctions to check if f(arg1,arg2) promotes either arg1 to the type of
* arg2 or viceversa. By default, (i.e. if it cannot be determined), no
* promotion is assumed.
*/
#if BOOST_WORKAROUND(BOOST_MSVC,<1400)
namespace boost{
namespace multi_index{
namespace detail{
template
struct promotes_1st_arg:mpl::false_{};
template
struct promotes_2nd_arg:mpl::false_{};
} /* namespace multi_index::detail */
} /* namespace multi_index */
} /* namespace boost */
#else
#include
#include
#include
#include
#include
namespace boost{
namespace multi_index{
namespace detail{
template
struct promotes_1st_arg:
mpl::and_<
mpl::not_ >,
is_convertible,
is_transparent
>
{};
template
struct promotes_2nd_arg:
mpl::and_<
mpl::not_ >,
is_convertible,
is_transparent
>
{};
} /* namespace multi_index::detail */
} /* namespace multi_index */
} /* namespace boost */
#endif
#endif