30 lines
873 B
C++
30 lines
873 B
C++
// Copyright Cromwell D. Enage 2018.
|
|
// 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)
|
|
|
|
#ifndef ACTIV_BOOST_PARAMETER_IS_ARGUMENT_PACK_HPP
|
|
#define ACTIV_BOOST_PARAMETER_IS_ARGUMENT_PACK_HPP
|
|
|
|
#include <ActivBoost/parameter/aux_/is_tagged_argument.hpp>
|
|
#include <ActivBoost/parameter/aux_/arg_list.hpp>
|
|
#include <ActivBoost/mpl/bool.hpp>
|
|
#include <ActivBoost/mpl/if.hpp>
|
|
#include <ActivBoost/type_traits/is_base_of.hpp>
|
|
|
|
namespace Boost { namespace parameter {
|
|
|
|
template <typename T>
|
|
struct is_argument_pack
|
|
: ::Boost::mpl::if_<
|
|
::Boost::is_base_of< ::Boost::parameter::aux::empty_arg_list,T>
|
|
, ::Boost::mpl::true_
|
|
, ::Boost::parameter::aux::is_tagged_argument<T>
|
|
>::type
|
|
{
|
|
};
|
|
}}
|
|
|
|
#endif // include guard
|
|
|