Blame view

3rdparty/boost_1_81_0/boost/vmd/equal.hpp 3.29 KB
0b6a182c   Hu Chunming   添加无鉴权注册和注销
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
  
  //  (C) Copyright Edward Diener 2011-2015
  //  Use, modification and distribution are subject to 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).
  
  #if !defined(BOOST_VMD_EQUAL_HPP)
  #define BOOST_VMD_EQUAL_HPP
  
  #include <boost/vmd/detail/setup.hpp>
  
  #if BOOST_PP_VARIADICS
  
  #include <boost/vmd/detail/equal.hpp>
  
  /*
  
    The succeeding comments in this file are in doxygen format.
  
  */
  
  /** \file
  */
  
  /** \def BOOST_VMD_EQUAL(sequence,...)
  
      \brief Tests any two sequences for equality.
  
      sequence     = First sequence. <br/>
      ...          = variadic parameters, maximum of 2.
      
      The first variadic parameter is required and is the second sequence to test.
      The optional second variadic parameter is a VMD type as a filter.
      
      The macro tests any two sequences for equality. For sequences to be equal the
      VMD types of each sequence must be equal and the individual elements of the
      sequence must be equal. For Boost PP composite types the macro tests that
      the composite types have the same size and then tests that each element
      of the composite type is equal. This means that all elements of a composite
      type must be a VMD type in order to use this macro successfully.
      
      The single optional parameter is a filter. The filter is a VMD type which specifies
      that both sequences to test must be of that VMD type, as well as being equal to
      each other, for the test to succeed.
      
      returns   = 1 upon success or 0 upon failure. Success means that both sequences are
                  equal and, if the optional parameter is specified, that the sequences are
                  of the optional VMD type.
      
  */
  
  #define BOOST_VMD_EQUAL(sequence,...) \
      BOOST_VMD_DETAIL_EQUAL(sequence,__VA_ARGS__) \
  /**/
  
  /** \def BOOST_VMD_EQUAL_D(d,sequence,...)
  
      \brief Tests any two sequences for equality. Re-entrant version.
  
      d            = The next available BOOST_PP_WHILE iteration. <br/>
      sequence     = First sequence. <br/>
      ...          = variadic parameters, maximum of 2.
      
      The first variadic parameter is required and is the second sequence to test.
      The optional second variadic parameter is a VMD type as a filter.
      
      The macro tests any two sequences for equality. For sequences to be equal the
      VMD types of each sequence must be equal and the individual elements of the
      sequence must be equal. For Boost PP composite types the macro tests that
      the composite types have the same size and then tests that each element
      of the composite type is equal. This means that all elements of a composite
      type must be a VMD type in order to use this macro successfully.
      
      The single optional parameter is a filter. The filter is a VMD type which specifies
      that both sequences to test must be of that VMD type, as well as being equal to
      each other, for the test to succeed.
      
      returns   = 1 upon success or 0 upon failure. Success means that both sequences are
                  equal and, if the optional parameter is specified, that the sequences are
                  of the optional VMD type.
      
  */
  
  #define BOOST_VMD_EQUAL_D(d,sequence,...) \
      BOOST_VMD_DETAIL_EQUAL_D(d,sequence,__VA_ARGS__) \
  /**/
  
  #endif /* BOOST_PP_VARIADICS */
  #endif /* BOOST_VMD_EQUAL_HPP */