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
// Copyright (C) 2005 Arkadiy Vertleyb // Copyright (C) 2005 Peder Holt // // Copyright (C) 2006 Tobias Schwinger // // Use, modification and distribution is subject to the Boost Software // License, Version 1.0. (http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_TYPEOF_VECTOR_HPP_INCLUDED #include
#include
#ifndef BOOST_TYPEOF_LIMIT_SIZE # define BOOST_TYPEOF_LIMIT_SIZE 50 #endif // // To recreate the preprocessed versions of this file preprocess and run // // $(BOOST_ROOT)/libs/typeof/tools/preprocess.pl // #if defined(BOOST_TYPEOF_PP_INCLUDE_EXTERNAL) # undef BOOST_TYPEOF_PP_INCLUDE_EXTERNAL #elif !defined(BOOST_TYPEOF_PREPROCESSING_MODE) && !BOOST_PP_IS_SELFISH # define BOOST_PP_INDIRECT_SELF
# if BOOST_TYPEOF_LIMIT_SIZE < 50 # include BOOST_PP_INCLUDE_SELF() # elif BOOST_TYPEOF_LIMIT_SIZE < 100 # include
# define BOOST_TYPEOF_PP_START_SIZE 51 # include BOOST_PP_INCLUDE_SELF() # elif BOOST_TYPEOF_LIMIT_SIZE < 150 # include
# define BOOST_TYPEOF_PP_START_SIZE 101 # include BOOST_PP_INCLUDE_SELF() # elif BOOST_TYPEOF_LIMIT_SIZE < 200 # include
# define BOOST_TYPEOF_PP_START_SIZE 151 # include BOOST_PP_INCLUDE_SELF() # elif BOOST_TYPEOF_LIMIT_SIZE <= 250 # include
# define BOOST_TYPEOF_PP_START_SIZE 201 # include BOOST_PP_INCLUDE_SELF() # else # error "BOOST_TYPEOF_LIMIT_SIZE too high" # endif #else// defined(BOOST_TYPEOF_PREPROCESSING_MODE) || BOOST_PP_IS_SELFISH # ifndef BOOST_TYPEOF_PP_NEXT_SIZE # define BOOST_TYPEOF_PP_NEXT_SIZE BOOST_TYPEOF_LIMIT_SIZE # endif # ifndef BOOST_TYPEOF_PP_START_SIZE # define BOOST_TYPEOF_PP_START_SIZE 0 # endif # if BOOST_TYPEOF_PP_START_SIZE <= BOOST_TYPEOF_LIMIT_SIZE # include
# include
# include
# include
# include
# include
# include
# include
# include
# include
// iterator # define BOOST_TYPEOF_spec_iter(n)\ template
\ struct v_iter
>\ {\ typedef typename V::item ## n type;\ typedef v_iter
> next;\ }; namespace boost { namespace type_of { template
struct v_iter; // not defined # define BOOST_PP_LOCAL_MACRO BOOST_TYPEOF_spec_iter # define BOOST_PP_LOCAL_LIMITS \ (BOOST_PP_DEC(BOOST_TYPEOF_PP_START_SIZE), \ BOOST_PP_DEC(BOOST_TYPEOF_LIMIT_SIZE)) # include BOOST_PP_LOCAL_ITERATE() }} # undef BOOST_TYPEOF_spec_iter // vector # define BOOST_TYPEOF_typedef_item(z, n, _)\ typedef P ## n item ## n; # define BOOST_TYPEOF_typedef_fake_item(z, n, _)\ typedef mpl::int_<1> item ## n; # define BOOST_TYPEOF_define_vector(n)\ template
\ struct vector ## n\ {\ typedef v_iter
, boost::mpl::int_<0> > begin;\ BOOST_PP_REPEAT(n, BOOST_TYPEOF_typedef_item, ~)\ BOOST_PP_REPEAT_FROM_TO(n, BOOST_TYPEOF_PP_NEXT_SIZE, BOOST_TYPEOF_typedef_fake_item, ~)\ }; namespace boost { namespace type_of { # define BOOST_PP_LOCAL_MACRO BOOST_TYPEOF_define_vector # define BOOST_PP_LOCAL_LIMITS \ (BOOST_TYPEOF_PP_START_SIZE,BOOST_TYPEOF_LIMIT_SIZE) # include BOOST_PP_LOCAL_ITERATE() }} # undef BOOST_TYPEOF_typedef_item # undef BOOST_TYPEOF_typedef_fake_item # undef BOOST_TYPEOF_define_vector // push_back # define BOOST_TYPEOF_spec_push_back(n)\ template
\ struct push_back
, T>\ {\ typedef BOOST_PP_CAT(boost::type_of::vector, BOOST_PP_INC(n))<\ BOOST_PP_ENUM_PARAMS(n, P) BOOST_PP_COMMA_IF(n) T\ > type;\ }; namespace boost { namespace type_of { # if BOOST_TYPEOF_LIMIT_SIZE < 50 template
struct push_back { typedef V type; }; # endif //default behaviour is to let push_back ignore T, and return the input vector. //This is to let BOOST_TYPEOF_NESTED_TYPEDEF work properly with the default vector. # define BOOST_PP_LOCAL_MACRO BOOST_TYPEOF_spec_push_back # define BOOST_PP_LOCAL_LIMITS \ (BOOST_PP_DEC(BOOST_TYPEOF_PP_START_SIZE), \ BOOST_PP_DEC(BOOST_TYPEOF_LIMIT_SIZE)) # include BOOST_PP_LOCAL_ITERATE() }} # undef BOOST_TYPEOF_spec_push_back # endif//BOOST_TYPEOF_PP_START_SIZE<=BOOST_TYPEOF_LIMIT_SIZE # undef BOOST_TYPEOF_PP_START_SIZE # undef BOOST_TYPEOF_PP_NEXT_SIZE #endif//BOOST_TYPEOF_PREPROCESSING_MODE || BOOST_PP_IS_SELFISH #define BOOST_TYPEOF_VECTOR_HPP_INCLUDED #endif//BOOST_TYPEOF_VECTOR_HPP_INCLUDED
vector.hpp
Page URL
File URL
Prev
20/24
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.