![]() System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /proc/thread-self/root/usr/include/boost/parameter/aux_/preprocessor/ |
Upload File : |
// Copyright Daniel Wallin 2006. // Copyright Cromwell D. Enage 2017. // Distributed under 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) #ifndef BOOST_PARAMETER_AUX_PREPROCESSOR_QUALIFIER_HPP #define BOOST_PARAMETER_AUX_PREPROCESSOR_QUALIFIER_HPP #define BOOST_PARAMETER_QUALIFIER_EAT_in(x) #define BOOST_PARAMETER_QUALIFIER_EAT_out(x) #define BOOST_PARAMETER_QUALIFIER_EAT_in_out(x) #define BOOST_PARAMETER_QUALIFIER_EAT_consume(x) #define BOOST_PARAMETER_QUALIFIER_EAT_move_from(x) #define BOOST_PARAMETER_QUALIFIER_EAT_forward(x) #define BOOST_PARAMETER_GET_QUALIFIER_in(x) in_reference #define BOOST_PARAMETER_GET_QUALIFIER_out(x) out_reference #define BOOST_PARAMETER_GET_QUALIFIER_in_out(x) in_out_reference #define BOOST_PARAMETER_GET_QUALIFIER_consume(x) consume_reference #define BOOST_PARAMETER_GET_QUALIFIER_move_from(x) move_from_reference #define BOOST_PARAMETER_GET_QUALIFIER_forward(x) forward_reference #define BOOST_PARAMETER_STRIP_QUALIFIER_in(x) x #define BOOST_PARAMETER_STRIP_QUALIFIER_out(x) x #define BOOST_PARAMETER_STRIP_QUALIFIER_in_out(x) x #define BOOST_PARAMETER_STRIP_QUALIFIER_consume(x) x #define BOOST_PARAMETER_STRIP_QUALIFIER_move_from(x) x #define BOOST_PARAMETER_STRIP_QUALIFIER_forward(x) x #include <boost/preprocessor/cat.hpp> #define BOOST_PARAMETER_GET_QUALIFIER_GET(x) \ BOOST_PP_CAT(BOOST_PARAMETER_GET_QUALIFIER_, x) /**/ #define BOOST_PARAMETER_GET_UNQUALIFIED(x) \ BOOST_PP_CAT(BOOST_PARAMETER_STRIP_QUALIFIER_, x) /**/ #include <boost/preprocessor/facilities/is_empty.hpp> // Expands to 1 if x is either "in(k)", "out(k)", "in_out(k)", "consume(k)", // "move_from(k)", or "forward(k)"; expands to 0 otherwise. #define BOOST_PARAMETER_IS_QUALIFIER(x) \ BOOST_PP_IS_EMPTY(BOOST_PP_CAT(BOOST_PARAMETER_QUALIFIER_EAT_, x)) /**/ #include <boost/preprocessor/control/iif.hpp> // Expands to the qualifier of x, // where x is either a keyword qualifier or a keyword. // // k => forward_reference // in(k) => in_reference // out(k) => out_reference // in_out(k) => in_out_reference // forward(k) => forward_reference // consume(k) => consume_reference // move_from(k) => move_from_reference #define BOOST_PARAMETER_GET_QUALIFIER(x) \ BOOST_PP_IIF( \ BOOST_PARAMETER_IS_QUALIFIER(x) \ , BOOST_PARAMETER_GET_QUALIFIER_GET(x) \ , forward_reference \ ) /**/ // Expands to the unqualified version of x, // where x is either a keyword qualifier or a keyword. // // k => k // in(k) => k // out(k) => k // in_out(k) => k // forward(k) => k // consume(k) => k // move_from(k) => k #define BOOST_PARAMETER_UNQUALIFIED(x) \ BOOST_PP_IIF( \ BOOST_PARAMETER_IS_QUALIFIER(x) \ , BOOST_PARAMETER_GET_UNQUALIFIED(x) \ , x \ ) /**/ #endif // include guard