File indexing completed on 2025-01-18 09:53:36
0001
0002
0003
0004
0005
0006
0007 #if !defined(BOOST_VMD_DETAIL_IS_NUMBER_HPP)
0008 #define BOOST_VMD_DETAIL_IS_NUMBER_HPP
0009
0010 #include <boost/preprocessor/control/iif.hpp>
0011 #include <boost/vmd/identity.hpp>
0012 #include <boost/vmd/detail/equal_type.hpp>
0013 #include <boost/vmd/detail/identifier_type.hpp>
0014 #include <boost/vmd/detail/is_identifier.hpp>
0015 #include <boost/vmd/detail/number_registration.hpp>
0016
0017 #define BOOST_VMD_DETAIL_IS_NUMBER_TYPE(vseq) \
0018 BOOST_VMD_DETAIL_EQUAL_TYPE \
0019 ( \
0020 BOOST_VMD_TYPE_NUMBER, \
0021 BOOST_VMD_DETAIL_IDENTIFIER_TYPE(vseq) \
0022 ) \
0023
0024
0025 #define BOOST_VMD_DETAIL_IS_NUMBER(vseq) \
0026 BOOST_VMD_IDENTITY_RESULT \
0027 ( \
0028 BOOST_PP_IIF \
0029 ( \
0030 BOOST_VMD_DETAIL_IS_IDENTIFIER_SINGLE(vseq), \
0031 BOOST_VMD_DETAIL_IS_NUMBER_TYPE, \
0032 BOOST_VMD_IDENTITY(0) \
0033 ) \
0034 (vseq) \
0035 ) \
0036
0037
0038 #endif