DriveHQ Start Menu
Cloud Drive Mapping
Folder Sync
Cloud Backup
True Drop Box
FTP/SFTP Hosting
Group Account
DriveHQ Start Menu
Online File Server
My Storage
|
Manage Shares
|
Publishes
|
Drop Boxes
|
Group Account
WebDAV Drive Mapping
Cloud Drive Home
|
WebDAV Guide
|
Drive Mapping Tool
|
Drive Mapping URL
Complete Data Backup
Backup Guide
|
Online Backup Tool
|
Cloud-to-Cloud Backup
FTP, Email & Web Service
FTP Home
|
FTP Hosting FAQ
|
Email Hosting
|
EmailManager
|
Web Hosting
Help & Resources
About
|
Enterprise Service
|
Partnership
|
Comparisons
|
Support
Quick Links
Security and Privacy
Download Software
Service Manual
Use Cases
Group Account
Online Help
Blog
Contact
Cloud Surveillance
Sign Up
Login
Features
Business Features
Online File Server
FTP Hosting
Cloud Drive Mapping
Cloud File Backup
Email Backup & Hosting
Cloud File Sharing
Folder Synchronization
Group Management
True Drop Box
Full-text Search
AD Integration/SSO
Mobile Access
IP Camera & DVR Solution
More...
Personal Features
Personal Cloud Drive
Backup All Devices
Mobile APPs
Personal Web Hosting
Sub-Account (for Kids)
Home/PC/Kids Monitoring
More...
Software
DriveHQ Drive Mapping Tool
DriveHQ FileManager
DriveHQ Online Backup
DriveHQ Mobile Apps
Pricing
Business Plans & Pricing
Personal Plans & Pricing
Price Comparison with Others
Feature Comparison with Others
Install Mobile App
Sign up
Creating account...
Invalid character in username! Only 0-9, a-z, A-Z, _, -, . allowed.
Username is required!
Invalid email address!
E-mail is required!
Password is required!
Password is invalid!
Password and confirmation do not match.
Confirm password is required!
I accept
Membership Agreement
Please read the Membership Agreement and check "I accept"!
Free Quick Sign-up
Sign-up Page
Log in
Signing in...
Username or e-mail address is required!
Password is required!
Keep me logged in
Quick Login
Forgot Password
Up
Upload
Download
Share
Publish
New Folder
New File
Copy
Cut
Delete
Paste
Rate
Upgrade
Rotate
Effect
Edit
Slide
History
//----------------------------------------------------------------------------- // boost variant/recursive_variant.hpp header file // See http://www.boost.org for updates, documentation, and revision history. //----------------------------------------------------------------------------- // // Copyright (c) 2003 // Eric Friedman // // 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_VARIANT_RECURSIVE_VARIANT_HPP #define BOOST_VARIANT_RECURSIVE_VARIANT_HPP #include "boost/variant/variant_fwd.hpp" #include "boost/variant/detail/enable_recursive.hpp" #include "boost/variant/detail/substitute_fwd.hpp" #include "boost/variant/detail/make_variant_list.hpp" #include "boost/variant/detail/over_sequence.hpp" #include "boost/mpl/aux_/lambda_arity_param.hpp" #if !defined(BOOST_VARIANT_NO_TYPE_SEQUENCE_SUPPORT) # include "boost/mpl/eval_if.hpp" # include "boost/mpl/identity.hpp" # include "boost/mpl/protect.hpp" # include "boost/mpl/transform.hpp" #else # include "boost/preprocessor/cat.hpp" # include "boost/preprocessor/repeat.hpp" #endif #include "boost/mpl/bool.hpp" #include "boost/mpl/is_sequence.hpp" #include "boost/variant/variant.hpp" namespace boost { namespace detail { namespace variant { /////////////////////////////////////////////////////////////////////////////// // (detail) metafunction specialization substitute // // Handles embedded variant types when substituting for recursive_variant_. // #if !defined(BOOST_VARIANT_DETAIL_NO_SUBSTITUTE) template < BOOST_VARIANT_ENUM_PARAMS(typename T) , typename RecursiveVariant BOOST_MPL_AUX_LAMBDA_ARITY_PARAM(typename Arity) > struct substitute< ::boost::variant< recursive_flag< T0 > , BOOST_VARIANT_ENUM_SHIFTED_PARAMS(T) > , RecursiveVariant , ::boost::recursive_variant_ BOOST_MPL_AUX_LAMBDA_ARITY_PARAM(Arity) > { typedef ::boost::variant< recursive_flag< T0 > , BOOST_VARIANT_ENUM_SHIFTED_PARAMS(T) > type; }; template < BOOST_VARIANT_ENUM_PARAMS(typename T) , typename RecursiveVariant BOOST_MPL_AUX_LAMBDA_ARITY_PARAM(typename Arity) > struct substitute< ::boost::variant< BOOST_VARIANT_ENUM_PARAMS(T) > , RecursiveVariant , ::boost::recursive_variant_ BOOST_MPL_AUX_LAMBDA_ARITY_PARAM(Arity) > { #if !defined(BOOST_VARIANT_NO_TYPE_SEQUENCE_SUPPORT) private: // helpers, for metafunction result (below) typedef typename mpl::eval_if< ::boost::detail::variant::is_over_sequence
, mpl::identity< T0 > , make_variant_list< BOOST_VARIANT_ENUM_PARAMS(T) > >::type initial_types; typedef typename mpl::transform< initial_types , mpl::protect< quoted_enable_recursive
> >::type types; public: // metafunction result typedef ::boost::variant< types > type; #else // defined(BOOST_VARIANT_NO_TYPE_SEQUENCE_SUPPORT) private: // helpers, for metafunction result (below) #define BOOST_VARIANT_AUX_ENABLE_RECURSIVE_TYPEDEFS(z,N,_) \ typedef typename enable_recursive< \ BOOST_PP_CAT(T,N) \ , RecursiveVariant \ , mpl::true_ \ >::type BOOST_PP_CAT(wknd_T,N); \ /**/ BOOST_PP_REPEAT( BOOST_VARIANT_LIMIT_TYPES , BOOST_VARIANT_AUX_ENABLE_RECURSIVE_TYPEDEFS , _ ) #undef BOOST_VARIANT_AUX_ENABLE_RECURSIVE_TYPEDEFS public: // metafunction result typedef ::boost::variant< BOOST_VARIANT_ENUM_PARAMS(wknd_T) > type; #endif // BOOST_VARIANT_NO_TYPE_SEQUENCE_SUPPORT workaround }; #else // defined(BOOST_VARIANT_DETAIL_NO_SUBSTITUTE) // // no specializations: embedded variants unsupported on these compilers! // #endif // !defined(BOOST_VARIANT_DETAIL_NO_SUBSTITUTE) }} // namespace detail::variant /////////////////////////////////////////////////////////////////////////////// // metafunction make_recursive_variant // // See docs and boost/variant/variant_fwd.hpp for more information. // template < BOOST_VARIANT_ENUM_PARAMS(typename T) > struct make_recursive_variant { public: // metafunction result typedef boost::variant< detail::variant::recursive_flag< T0 > , BOOST_VARIANT_ENUM_SHIFTED_PARAMS(T) > type; }; /////////////////////////////////////////////////////////////////////////////// // metafunction make_recursive_variant_over // // See docs and boost/variant/variant_fwd.hpp for more information. // template
struct make_recursive_variant_over { private: // precondition assertions #if !BOOST_WORKAROUND(BOOST_MSVC, <= 1300) BOOST_STATIC_ASSERT(( ::boost::mpl::is_sequence
::value )); #endif public: // metafunction result typedef typename make_recursive_variant< detail::variant::over_sequence< Types > >::type type; }; } // namespace boost #endif // BOOST_VARIANT_RECURSIVE_VARIANT_HPP
recursive_variant.hpp
Page URL
File URL
Prev
4/10
Next
Download
( 5 KB )
Note: The DriveHQ service banners will NOT be displayed if the file owner is a paid member.
Comments
Total ratings:
0
Average rating:
Not Rated
Would you like to comment?
Join DriveHQ
for a free account, or
Logon
if you are already a member.