Changed opt to has_opt in header file and HTML

This commit is contained in:
Edward Diener
2019-10-19 10:51:40 -04:00
parent 1473215dc7
commit 80107ea60a
16 changed files with 27 additions and 27 deletions

View File

@ -231,7 +231,7 @@
<li><a href="headers/variadic.html">variadic.hpp</a></li> <li><a href="headers/variadic.html">variadic.hpp</a></li>
<li>variadic/</li> <li>variadic/</li>
<li class="ps"><a href="headers/variadic/elem.html">elem.hpp</a> <a href="topics/variadic_macros.html#VNotation">(v)</a></li> <li class="ps"><a href="headers/variadic/elem.html">elem.hpp</a> <a href="topics/variadic_macros.html#VNotation">(v)</a></li>
<li class="ps"><a href="headers/variadic/opt.html">opt.hpp</a> </li> <li class="ps"><a href="headers/variadic/has_opt.html">has_opt.hpp</a> </li>
<li class="ps"><a href="headers/variadic/size.html">size.hpp</a> <a href="topics/variadic_macros.html#VNotation">(v)</a></li> <li class="ps"><a href="headers/variadic/size.html">size.hpp</a> <a href="topics/variadic_macros.html#VNotation">(v)</a></li>
<li class="ps"><a href="headers/variadic/to_array.html">to_array.hpp</a> <a <li class="ps"><a href="headers/variadic/to_array.html">to_array.hpp</a> <a
href="topics/variadic_macros.html#VNotation">(v)</a></li> href="topics/variadic_macros.html#VNotation">(v)</a></li>

View File

@ -14,7 +14,7 @@
<h4>Includes</h4> <h4>Includes</h4>
<ul> <ul>
<li><a href="variadic/elem.html">&lt;boost/preprocessor/variadic/elem.hpp&gt;</a> <a href="../topics/variadic_macros.html#VNotation" target="_self">(v)</a></li> <li><a href="variadic/elem.html">&lt;boost/preprocessor/variadic/elem.hpp&gt;</a> <a href="../topics/variadic_macros.html#VNotation" target="_self">(v)</a></li>
<li><a href="variadic/opt.html">&lt;boost/preprocessor/variadic/opt.hpp&gt;</a> </li> <li><a href="variadic/has_opt.html">&lt;boost/preprocessor/variadic/has_opt.hpp&gt;</a> </li>
<li><a href="variadic/size.html">&lt;boost/preprocessor/variadic/size.hpp&gt;</a> <a href="../topics/variadic_macros.html#VNotation" target="_self">(v)</a></li> <li><a href="variadic/size.html">&lt;boost/preprocessor/variadic/size.hpp&gt;</a> <a href="../topics/variadic_macros.html#VNotation" target="_self">(v)</a></li>
<li><a href="variadic/to_array.html">&lt;boost/preprocessor/variadic/to_array.hpp&gt;</a> <a href="../topics/variadic_macros.html#VNotation" target="_self">(v)</a></li> <li><a href="variadic/to_array.html">&lt;boost/preprocessor/variadic/to_array.hpp&gt;</a> <a href="../topics/variadic_macros.html#VNotation" target="_self">(v)</a></li>
<li><a href="variadic/to_list.html">&lt;boost/preprocessor/variadic/to_list.hpp&gt;</a> <a href="../topics/variadic_macros.html#VNotation" target="_self">(v)</a></li> <li><a href="variadic/to_list.html">&lt;boost/preprocessor/variadic/to_list.hpp&gt;</a> <a href="../topics/variadic_macros.html#VNotation" target="_self">(v)</a></li>

View File

@ -1,16 +1,16 @@
<html><head> <html><head>
<title>variadic/opt.hpp</title> <title>variadic/has_opt.hpp</title>
<link rel="stylesheet" type="text/css" href="../../styles.css"></head><body> <link rel="stylesheet" type="text/css" href="../../styles.css"></head><body>
<div style="margin-left: 0px;"> <div style="margin-left: 0px;">
The <b>variadic/opt.hpp</b> header defines a macro that determines whether or not the __VA_OPT__ construct is supported. The <b>variadic/has_opt.hpp</b> header defines a macro that determines whether or not the __VA_OPT__ construct is supported.
</div> </div>
<h4>Usage</h4> <h4>Usage</h4>
<div class="code"> <div class="code">
#include <b>&lt;boost/preprocessor/variadic/opt.hpp&gt;</b> #include <b>&lt;boost/preprocessor/variadic/has_opt.hpp&gt;</b>
</div> </div>
<h4>Contents</h4> <h4>Contents</h4>
<ul> <ul>
<li><a href="../../ref/variadic_opt.html">BOOST_PP_VARIADIC_HAS_OPT</a> <br> <li><a href="../../ref/variadic_has_opt.html">BOOST_PP_VARIADIC_HAS_OPT</a> <br>
</li> </li>
</ul> </ul>
<hr size="1"> <hr size="1">

View File

@ -299,7 +299,7 @@
<li><a href="ref/value.html">VALUE</a></li> <li><a href="ref/value.html">VALUE</a></li>
<li><a href="ref/variadics.html">VARIADICS</a></li> <li><a href="ref/variadics.html">VARIADICS</a></li>
<li><a href="ref/variadic_elem.html">VARIADIC_ELEM</a> <a href="topics/variadic_macros.html#VNotation">(v)</a></li> <li><a href="ref/variadic_elem.html">VARIADIC_ELEM</a> <a href="topics/variadic_macros.html#VNotation">(v)</a></li>
<li><a href="ref/variadic_opt.html">VARIADIC_HAS_OPT</a></li> <li><a href="ref/variadic_has_opt.html">VARIADIC_HAS_OPT</a></li>
<li><a href="ref/variadic_seq_to_seq.html">VARIADIC_SEQ_TO_SEQ</a> <a href="topics/variadic_macros.html#VNotation">(v)</a></li> <li><a href="ref/variadic_seq_to_seq.html">VARIADIC_SEQ_TO_SEQ</a> <a href="topics/variadic_macros.html#VNotation">(v)</a></li>
<li><a href="ref/variadic_size.html">VARIADIC_SIZE</a> <a href="topics/variadic_macros.html#VNotation">(v)</a></li> <li><a href="ref/variadic_size.html">VARIADIC_SIZE</a> <a href="topics/variadic_macros.html#VNotation">(v)</a></li>
<li><a href="ref/variadic_to_array.html">VARIADIC_TO_ARRAY</a> <a href="topics/variadic_macros.html#VNotation">(v)</a></li> <li><a href="ref/variadic_to_array.html">VARIADIC_TO_ARRAY</a> <a href="topics/variadic_macros.html#VNotation">(v)</a></li>

View File

@ -29,7 +29,7 @@ case this macro will expand to 1 just as if nothing has been passed.
</div> </div>
<h4>See Also</h4> <h4>See Also</h4>
<ul> <ul>
<li><a href="variadic_opt.html">BOOST_PP_VARIADIC_HAS_OPT</a></li> <li><a href="variadic_has_opt.html">BOOST_PP_VARIADIC_HAS_OPT</a></li>
</ul> </ul>
<h4>Requirements</h4> <h4>Requirements</h4>
<div> <b>Header:</b> &nbsp;<a href="../headers/facilities/check_empty.html">&lt;boost/preprocessor/facilities/check_empty.hpp&gt;</a> <div> <b>Header:</b> &nbsp;<a href="../headers/facilities/check_empty.html">&lt;boost/preprocessor/facilities/check_empty.hpp&gt;</a>
@ -39,7 +39,7 @@ case this macro will expand to 1 just as if nothing has been passed.
<pre> <pre>
#include &lt;<a href="../headers/facilities/check_empty.html">boost/preprocessor/facilities/check_empty.hpp</a>&gt; #include &lt;<a href="../headers/facilities/check_empty.html">boost/preprocessor/facilities/check_empty.hpp</a>&gt;
# if <a href="variadic_opt.html">BOOST_PP_VARIADIC_HAS_OPT</a>() # if <a href="variadic_has_opt.html">BOOST_PP_VARIADIC_HAS_OPT</a>()
#define DATA #define DATA
#define OBJECT OBJECT2 #define OBJECT OBJECT2

View File

@ -30,13 +30,13 @@ Expands to 1 if the __VA_OPT__ construct is supported, otherwise expands to 0.
0 for all lesser C++ standard levels. 0 for all lesser C++ standard levels.
</div> </div>
<h4>Requirements</h4> <h4>Requirements</h4>
<div> <b>Header:</b> &nbsp;<a href="../headers/variadic/opt.html">&lt;boost/preprocessor/variadic/opt.hpp&gt;</a> <div> <b>Header:</b> &nbsp;<a href="../headers/variadic/has_opt.html">&lt;boost/preprocessor/variadic/has_opt.hpp&gt;</a>
</div> </div>
<h4>Sample Code</h4> <h4>Sample Code</h4>
<div> <div>
<pre> <pre>
#include &lt;<a href="../headers/variadic/opt.html">boost/preprocessor/variadic/opt.hpp</a>&gt;<br> #include &lt;<a href="../headers/variadic/has_opt.html">boost/preprocessor/variadic/has_opt.hpp</a>&gt;<br>
#if <a href="variadic_opt.html">BOOST_PP_VARIADIC_HAS_OPT</a>() #if <a href="variadic_has_opt.html">BOOST_PP_VARIADIC_HAS_OPT</a>()
// Preprocessor code which uses __VA_OPT__ // Preprocessor code which uses __VA_OPT__
#else #else
// Preprocessor code which does not use __VA_OPT__ // Preprocessor code which does not use __VA_OPT__
@ -46,8 +46,8 @@ Expands to 1 if the __VA_OPT__ construct is supported, otherwise expands to 0.
or within a macro definition<br><br> or within a macro definition<br><br>
<pre> <pre>
#include &lt;boost/preprocessor/control/iif.hpp&gt; #include &lt;boost/preprocessor/control/iif.hpp&gt;
#include &lt;<a href="../headers/variadic/opt.html">boost/preprocessor/variadic/opt.hpp</a>&gt;<br> #include &lt;<a href="../headers/variadic/has_opt.html">boost/preprocessor/variadic/has_opt.hpp</a>&gt;<br>
#define USE_OPT(...) BOOST_PP_IIF(<a href="variadic_opt.html">BOOST_PP_VARIADIC_HAS_OPT</a>(),MACRO_USING_OPT,MACRO_NOT_USING_OPT)(__VA_ARGS__) #define USE_OPT(...) BOOST_PP_IIF(<a href="variadic_has_opt.html">BOOST_PP_VARIADIC_HAS_OPT</a>(),MACRO_USING_OPT,MACRO_NOT_USING_OPT)(__VA_ARGS__)
#define MACRO_USING_OPT(...) __VA_OPT__( preprocessor tokens ) anything #define MACRO_USING_OPT(...) __VA_OPT__( preprocessor tokens ) anything
#define MACRO_NOT_USING_OPT(...) anything #define MACRO_NOT_USING_OPT(...) anything
</pre> </pre>

View File

@ -135,7 +135,7 @@
</div> </div>
<b>See</b> <b>Also</b><br> <b>See</b> <b>Also</b><br>
<ul> <ul>
<li><a href="../ref/variadic_opt.html">BOOST_PP_VARIADIC_HAS_OPT</a></li> <li><a href="../ref/variadic_has_opt.html">BOOST_PP_VARIADIC_HAS_OPT</a></li>
<li><a href="../ref/check_empty.html">BOOST_PP_CHECK_EMPTY</a></li> <li><a href="../ref/check_empty.html">BOOST_PP_CHECK_EMPTY</a></li>
</ul> </ul>
<hr size="1"> <hr size="1">

View File

@ -11,7 +11,7 @@
# #
# ifndef BOOST_PREPROCESSOR_FACILITIES_CHECK_EMPTY_HPP # ifndef BOOST_PREPROCESSOR_FACILITIES_CHECK_EMPTY_HPP
# define BOOST_PREPROCESSOR_FACILITIES_CHECK_EMPTY_HPP # define BOOST_PREPROCESSOR_FACILITIES_CHECK_EMPTY_HPP
# include <boost/preprocessor/variadic/opt.hpp> # include <boost/preprocessor/variadic/has_opt.hpp>
# if BOOST_PP_VARIADIC_HAS_OPT() # if BOOST_PP_VARIADIC_HAS_OPT()
# include <boost/preprocessor/facilities/is_empty_variadic.hpp> # include <boost/preprocessor/facilities/is_empty_variadic.hpp>
# define BOOST_PP_CHECK_EMPTY(...) BOOST_PP_IS_EMPTY_OPT(__VA_ARGS__) # define BOOST_PP_CHECK_EMPTY(...) BOOST_PP_IS_EMPTY_OPT(__VA_ARGS__)

View File

@ -38,7 +38,7 @@
#define BOOST_PP_IS_EMPTY_ZERO(param) 0 #define BOOST_PP_IS_EMPTY_ZERO(param) 0
# else # else
# if defined(__cplusplus) && __cplusplus > 201703L # if defined(__cplusplus) && __cplusplus > 201703L
# include <boost/preprocessor/variadic/opt.hpp> # include <boost/preprocessor/variadic/has_opt.hpp>
#define BOOST_PP_IS_EMPTY(...) \ #define BOOST_PP_IS_EMPTY(...) \
BOOST_PP_DETAIL_IS_EMPTY_IIF \ BOOST_PP_DETAIL_IS_EMPTY_IIF \
( \ ( \

View File

@ -14,7 +14,7 @@
# define BOOST_PREPROCESSOR_VARIADIC_HPP # define BOOST_PREPROCESSOR_VARIADIC_HPP
# #
# include <boost/preprocessor/variadic/elem.hpp> # include <boost/preprocessor/variadic/elem.hpp>
# include <boost/preprocessor/variadic/opt.hpp> # include <boost/preprocessor/variadic/has_opt.hpp>
# include <boost/preprocessor/variadic/size.hpp> # include <boost/preprocessor/variadic/size.hpp>
# include <boost/preprocessor/variadic/to_array.hpp> # include <boost/preprocessor/variadic/to_array.hpp>
# include <boost/preprocessor/variadic/to_list.hpp> # include <boost/preprocessor/variadic/to_list.hpp>

View File

@ -9,8 +9,8 @@
# #
# /* See http://www.boost.org for most recent version. */ # /* See http://www.boost.org for most recent version. */
# #
# ifndef BOOST_PREPROCESSOR_VARIADIC_DETAIL_OPT_HPP # ifndef BOOST_PREPROCESSOR_VARIADIC_DETAIL_HAS_OPT_HPP
# define BOOST_PREPROCESSOR_VARIADIC_DETAIL_OPT_HPP # define BOOST_PREPROCESSOR_VARIADIC_DETAIL_HAS_OPT_HPP
# #
# include <boost/preprocessor/config/config.hpp> # include <boost/preprocessor/config/config.hpp>
# #

View File

@ -9,15 +9,15 @@
# #
# /* See http://www.boost.org for most recent version. */ # /* See http://www.boost.org for most recent version. */
# #
# ifndef BOOST_PREPROCESSOR_VARIADIC_OPT_HPP # ifndef BOOST_PREPROCESSOR_VARIADIC_HAS_OPT_HPP
# define BOOST_PREPROCESSOR_VARIADIC_OPT_HPP # define BOOST_PREPROCESSOR_VARIADIC_HAS_OPT_HPP
# #
# include <boost/preprocessor/config/config.hpp> # include <boost/preprocessor/config/config.hpp>
# #
# /* BOOST_PP_VARIADIC_HAS_OPT */ # /* BOOST_PP_VARIADIC_HAS_OPT */
# #
# if BOOST_PP_VARIADICS && defined(__cplusplus) && __cplusplus > 201703L # if BOOST_PP_VARIADICS && defined(__cplusplus) && __cplusplus > 201703L
# include <boost/preprocessor/variadic/detail/opt.hpp> # include <boost/preprocessor/variadic/detail/has_opt.hpp>
# define BOOST_PP_VARIADIC_HAS_OPT() \ # define BOOST_PP_VARIADIC_HAS_OPT() \
BOOST_PP_VARIADIC_HAS_OPT_ELEM2(BOOST_PP_VARIADIC_HAS_OPT_FUNCTION(?),) \ BOOST_PP_VARIADIC_HAS_OPT_ELEM2(BOOST_PP_VARIADIC_HAS_OPT_FUNCTION(?),) \
/**/ /**/

View File

@ -13,7 +13,7 @@
#include <iomanip> #include <iomanip>
#include <string.h> #include <string.h>
#include <boost/preprocessor/stringize.hpp> #include <boost/preprocessor/stringize.hpp>
#include <boost/preprocessor/variadic/opt.hpp> #include <boost/preprocessor/variadic/has_opt.hpp>
static unsigned int indent = 4; static unsigned int indent = 4;
static unsigned int width = 40; static unsigned int width = 40;

View File

@ -38,7 +38,7 @@
#if BOOST_PP_VARIADICS #if BOOST_PP_VARIADICS
# include <boost/preprocessor/variadic/opt.hpp> # include <boost/preprocessor/variadic/has_opt.hpp>
#if defined(__cplusplus) && __cplusplus > 201703L && BOOST_PP_VARIADIC_HAS_OPT() #if defined(__cplusplus) && __cplusplus > 201703L && BOOST_PP_VARIADIC_HAS_OPT()

View File

@ -18,7 +18,7 @@
#if defined(__cplusplus) && __cplusplus > 201703L #if defined(__cplusplus) && __cplusplus > 201703L
# include <boost/preprocessor/variadic/opt.hpp> # include <boost/preprocessor/variadic/has_opt.hpp>
BEGIN BOOST_PP_IS_EMPTY(FUNC_GEN8) == BOOST_PP_VARIADIC_HAS_OPT() END BEGIN BOOST_PP_IS_EMPTY(FUNC_GEN8) == BOOST_PP_VARIADIC_HAS_OPT() END

View File

@ -18,7 +18,7 @@
#if defined(__cplusplus) && __cplusplus > 201703L #if defined(__cplusplus) && __cplusplus > 201703L
# include <boost/preprocessor/variadic/opt.hpp> # include <boost/preprocessor/variadic/has_opt.hpp>
BEGIN BOOST_PP_IS_EMPTY(FUNC_GEN9) == BOOST_PP_VARIADIC_HAS_OPT() END BEGIN BOOST_PP_IS_EMPTY(FUNC_GEN9) == BOOST_PP_VARIADIC_HAS_OPT() END