]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/boost/vmd/is_number.hpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / boost / vmd / is_number.hpp
CommitLineData
7c673cae
FG
1
2// (C) Copyright Edward Diener 2011-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_NUMBER_HPP)
8#define BOOST_VMD_IS_NUMBER_HPP
9
10#include <boost/vmd/detail/setup.hpp>
11
12#if BOOST_PP_VARIADICS
13
14#include <boost/vmd/detail/is_number.hpp>
15
16/*
17
18 The succeeding comments in this file are in doxygen format.
19
20*/
21
22/** \file
23*/
24
25/** \def BOOST_VMD_IS_NUMBER(sequence)
26
27 \brief Tests whether a sequence is a Boost PP number.
28
29 The macro checks to see if a sequence is a Boost PP number.
20effc67 30 A Boost PP number is a value from 0 to BOOST_PP_LIMIT_MAG.
7c673cae
FG
31
32 sequence = a possible number
33
f67539c2 34 returns = 1 if the sequence is a Boost PP number,
7c673cae
FG
35 0 if it is not.
36
37 If the input is not a VMD data type this macro could lead to
38 a preprocessor error. This is because the macro
39 uses preprocessor concatenation to determine if the input
40 is a number once it is determined that the input does not
41 start with parenthesis. If the data being concatenated would
42 lead to an invalid preprocessor token the compiler can issue
43 a preprocessor error.
44
45*/
46
47#define BOOST_VMD_IS_NUMBER(sequence) \
48 BOOST_VMD_DETAIL_IS_NUMBER(sequence) \
49/**/
50
51#endif /* BOOST_PP_VARIADICS */
52#endif /* BOOST_VMD_IS_NUMBER_HPP */