]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/vmd/include/boost/vmd/tuple/is_vmd_tuple.hpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / vmd / include / boost / vmd / tuple / is_vmd_tuple.hpp
1
2 // (C) Copyright Edward Diener 2015
3 // Use, modification and distribution are subject to the Boost Software License,
4 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
5 // http://www.boost.org/LICENSE_1_0.txt).
6
7 #if !defined(BOOST_VMD_IS_VMD_TUPLE_HPP)
8 #define BOOST_VMD_IS_VMD_TUPLE_HPP
9
10 #include <boost/vmd/detail/setup.hpp>
11
12 #if BOOST_PP_VARIADICS
13
14 #include <boost/preprocessor/control/iif.hpp>
15 #include <boost/vmd/identity.hpp>
16 #include <boost/vmd/is_empty.hpp>
17 #include <boost/vmd/is_tuple.hpp>
18
19 /*
20
21 The succeeding comments in this file are in doxygen format.
22
23 */
24
25 /** \file
26 */
27
28 /** \def BOOST_VMD_IS_VMD_TUPLE(sequence)
29
30 \brief Determines if a sequence is a VMD tuple.
31
32 The macro checks that the sequence is a VMD tuple.
33 A VMD tuple, which may be a Boost PP tuple or emptiness, is a superset of a Boost PP tuple.
34 It returns 1 if it is a VMD tuple, else if returns 0.
35
36 sequence = a possible Boost PP tuple
37
38 returns = 1 if it a VMD tuple, else returns 0.
39
40 */
41
42 #define BOOST_VMD_IS_VMD_TUPLE(sequence) \
43 BOOST_VMD_IDENTITY_RESULT \
44 ( \
45 BOOST_PP_IIF \
46 ( \
47 BOOST_VMD_IS_EMPTY(sequence), \
48 BOOST_VMD_IDENTITY(1), \
49 BOOST_VMD_IS_TUPLE \
50 ) \
51 (sequence) \
52 ) \
53 /**/
54
55 #endif /* BOOST_PP_VARIADICS */
56 #endif /* BOOST_VMD_IS_VMD_TUPLE_HPP */