2
0
mirror of https://github.com/boostorg/tti.git synced 2026-01-26 07:02:14 +00:00
Files
tti/test/test_mf_has_template.cpp
Edward Diener 62d9696840 Updated tests and header file inclusion.
[SVN r69815]
2011-03-10 02:44:14 +00:00

92 lines
2.4 KiB
C++

#include "test_mf_has_template.hpp"
#include <boost/detail/lightweight_test.hpp>
int main()
{
using namespace boost::mpl::placeholders;
BOOST_TEST((boost::tti::mf_has_template
<
BOOST_TTI_TRAIT_GEN(HaveMStr)<_>,
BOOST_TTI_MEMBER_TYPE_GEN(AStructType)<AType>
>
::value
));
BOOST_TEST((!boost::tti::mf_has_template
<
BOOST_TTI_HAS_TEMPLATE_GEN(TemplateNotExist)<_>,
BOOST_TTI_TRAIT_GEN(MT_BType)<AType>
>
::value
));
BOOST_TEST((boost::tti::mf_has_template
<
BOOST_TTI_HAS_TEMPLATE_GEN(ATPMemberTemplate)<_>,
boost::mpl::identity<AType>
>
::value
));
BOOST_TEST((boost::tti::mf_has_template
<
BOOST_TTI_TRAIT_GEN(HaveCL)<_>,
boost::mpl::identity<AType>
>
::value
));
BOOST_TEST((boost::tti::mf_has_template
<
BOOST_TTI_HAS_TEMPLATE_GEN(SimpleTMP)<_>,
boost::mpl::identity<AnotherType>
>
::value
));
BOOST_TEST((boost::tti::mf_has_template
<
BOOST_TTI_TRAIT_GEN(MetaHaveMStr),
BOOST_TTI_MEMBER_TYPE_GEN(AStructType)<AType>
>
::value
));
BOOST_TEST((!boost::tti::mf_has_template
<
BOOST_TTI_MTFC_HAS_TEMPLATE_GEN(TemplateNotExist),
BOOST_TTI_TRAIT_GEN(MT_BType)<AType>
>
::value
));
BOOST_TEST((boost::tti::mf_has_template
<
BOOST_TTI_MTFC_HAS_TEMPLATE_GEN(ATPMemberTemplate),
boost::mpl::identity<AType>
>
::value
));
BOOST_TEST((boost::tti::mf_has_template
<
BOOST_TTI_TRAIT_GEN(MFClassHaveCL),
boost::mpl::identity<AType>
>
::value
));
BOOST_TEST((boost::tti::mf_has_template
<
BOOST_TTI_MTFC_HAS_TEMPLATE_GEN(SimpleTMP),
boost::mpl::identity<AnotherType>
>
::value
));
return boost::report_errors();
}