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
/////////////////////////////////////////////////////////////////////////////// // sub_match_vector.hpp // // Copyright 2007 Eric Niebler. 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_XPRESSIVE_DETAIL_CORE_SUB_MATCH_VECTOR_HPP_EAN_10_04_2005 #define BOOST_XPRESSIVE_DETAIL_CORE_SUB_MATCH_VECTOR_HPP_EAN_10_04_2005 // MS compatible compilers support #pragma once #if defined(_MSC_VER) && (_MSC_VER >= 1020) # pragma once #endif #include
#include
#include
#include
namespace boost { namespace xpressive { namespace detail { #if BOOST_ITERATOR_ADAPTORS_VERSION >= 0x0200 ////////////////////////////////////////////////////////////////////////// // sub_match_iterator // template
struct sub_match_iterator : iterator_adaptor < sub_match_iterator
, MainIter , Value , std::random_access_iterator_tag > { typedef iterator_adaptor < sub_match_iterator
, MainIter , Value , std::random_access_iterator_tag > base_t; sub_match_iterator(MainIter baseiter) : base_t(baseiter) { } }; #endif ////////////////////////////////////////////////////////////////////////// // sub_match_vector // template
struct sub_match_vector : private noncopyable { private: struct dummy { int i_; }; typedef int dummy::*bool_type; public: typedef sub_match
value_type; typedef std::size_t size_type; typedef value_type const &const_reference; typedef const_reference reference; typedef typename iterator_difference
::type difference_type; typedef typename iterator_value
::type char_type; typedef typename sub_match
::string_type string_type; #if BOOST_ITERATOR_ADAPTORS_VERSION >= 0x0200 typedef sub_match_iterator < value_type const , sub_match_impl
const * > const_iterator; #else typedef iterator_adaptor < sub_match_impl
const * , default_iterator_policies , value_type , value_type const & , value_type const * > const_iterator; #endif // BOOST_ITERATOR_ADAPTORS_VERSION < 0x0200 typedef const_iterator iterator; sub_match_vector() : size_(0) , sub_matches_(0) { } const_reference operator [](size_type index) const { static value_type const s_null; return (index >= this->size_) ? s_null : *static_cast
(&this->sub_matches_[ index ]); } size_type size() const { return this->size_; } bool empty() const { return 0 == this->size(); } const_iterator begin() const { return const_iterator(this->sub_matches_); } const_iterator end() const { return const_iterator(this->sub_matches_ + this->size_); } operator bool_type() const { return (!this->empty() && (*this)[0].matched) ? &dummy::i_ : 0; } bool operator !() const { return this->empty() || !(*this)[0].matched; } void swap(sub_match_vector
&that) { std::swap(this->size_, that.size_); std::swap(this->sub_matches_, that.sub_matches_); } private: friend struct detail::core_access
; void init_(sub_match_impl
*sub_matches, size_type size) { this->size_ = size; this->sub_matches_ = sub_matches; } void init_(sub_match_impl
*sub_matches, size_type size, sub_match_vector
const &that) { BOOST_ASSERT(size == that.size_); this->size_ = size; this->sub_matches_ = sub_matches; std::copy(that.sub_matches_, that.sub_matches_ + that.size_, this->sub_matches_); } size_type size_; sub_match_impl
*sub_matches_; }; }}} // namespace boost::xpressive::detail #endif
sub_match_vector.hpp
Page URL
File URL
Prev
16/16 Next
Download
( 4 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.