Server IP : 104.21.38.3 / Your IP : 172.69.176.166 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,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_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /www/server/mysql/src/boost/boost_1_59_0/boost/utility/ |
Upload File : |
// Copyright (C) 2003, Fernando Luis Cacciola Carballal. // Copyright (C) 2007, Tobias Schwinger. // // Use, modification, and distribution is 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) // // See http://www.boost.org/libs/optional for documentation. // // You are welcome to contact the author at: // [email protected] // #ifndef BOOST_UTILITY_INPLACE_FACTORY_04APR2007_HPP #ifndef BOOST_PP_IS_ITERATING #include <boost/utility/detail/in_place_factory_prefix.hpp> namespace boost { class in_place_factory_base {} ; #define BOOST_PP_ITERATION_LIMITS (0, BOOST_MAX_INPLACE_FACTORY_ARITY) #define BOOST_PP_FILENAME_1 <boost/utility/in_place_factory.hpp> #include BOOST_PP_ITERATE() } // namespace boost #include <boost/utility/detail/in_place_factory_suffix.hpp> #define BOOST_UTILITY_INPLACE_FACTORY_04APR2007_HPP #else #define N BOOST_PP_ITERATION() #if N template< BOOST_PP_ENUM_PARAMS(N, class A) > #endif class BOOST_PP_CAT(in_place_factory,N) : public in_place_factory_base { public: explicit BOOST_PP_CAT(in_place_factory,N) ( BOOST_PP_ENUM_BINARY_PARAMS(N,A,const& a) ) #if N > 0 : BOOST_PP_ENUM(N, BOOST_DEFINE_INPLACE_FACTORY_CLASS_MEMBER_INIT, _) #endif {} template<class T> void* apply(void* address) const { return new(address) T( BOOST_PP_ENUM_PARAMS(N, m_a) ); } template<class T> void* apply(void* address, std::size_t n) const { for(char* next = address = this->BOOST_NESTED_TEMPLATE apply<T>(address); !! --n;) this->BOOST_NESTED_TEMPLATE apply<T>(next = next+sizeof(T)); return address; } BOOST_PP_REPEAT(N, BOOST_DEFINE_INPLACE_FACTORY_CLASS_MEMBER_DECL, _) }; #if N > 0 template< BOOST_PP_ENUM_PARAMS(N, class A) > inline BOOST_PP_CAT(in_place_factory,N)< BOOST_PP_ENUM_PARAMS(N, A) > in_place( BOOST_PP_ENUM_BINARY_PARAMS(N, A, const& a) ) { return BOOST_PP_CAT(in_place_factory,N)< BOOST_PP_ENUM_PARAMS(N, A) > ( BOOST_PP_ENUM_PARAMS(N, a) ); } #else inline in_place_factory0 in_place() { return in_place_factory0(); } #endif #undef N #endif #endif