DriveHQ Start Menu
Cloud Drive Mapping
Folder Sync
True Drop Box
FTP/SFTP Hosting
Group Account
Team Anywhere
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
|
Cloud-to-Cloud Backup
|
DVR/Camera Backup
FTP, Email & Web Service
FTP/SFTP Hosting
|
Email Hosting
|
Web Hosting
|
Webcam Hosting
Cloud Surveillance & Remote Desktop
Team Anywhere
|
Connect to Remote PC
|
Cloud Surveillance
|
Virtual CCTV NVR
Quick Links
Security and Privacy
Customer Support
Service Manual
Use Cases
Group Account
Online Help
Support Forum
Contact Us
About DriveHQ
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
Personal Features
Personal Cloud Drive
Backup All Devices
Mobile APPs
Personal Web Hosting
Sub-Account (for Kids)
Home/PC/Kids Monitoring
Cloud Surveillance & Remote Desktop
Team Anywhere (Remote Desktop Service)
CameraFTP Cloud Surveillance
Software
DriveHQ Drive Mapping Tool
DriveHQ FileManager
DriveHQ Online Backup
DriveHQ Team Anywhere for Windows (Beta)
DriveHQ Mobile Apps
CameraFTP Software & Apps
Pricing
Business Plans & Pricing
Personal Plans & Pricing
Price Comparison with Others
Feature Comparison with Others
CameraFTP Cloud Recording Service Plans
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) 2006 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) ==============================================================================*/ #if !defined(FIND_IF_S_05152006_1027) #define FIND_IF_S_05152006_1027 #include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
// fwd declarations namespace boost { namespace fusion { namespace detail { template
::value> struct static_find_if_s_recurse; } namespace result_of { template
struct find_if_s; } }} namespace boost { namespace fusion { namespace detail { template
::value> struct is_found : mpl::not_
::type> > {}; template
struct is_found
: mpl::not_
> {}; template< typename SegmentedRange , typename Where , typename Sequence = typename remove_reference< typename result_of::deref< typename SegmentedRange::iterator_type >::type >::type , bool IsSegmented = traits::is_segmented
::value > struct as_segmented_cons { typedef cons< SegmentedRange , cons
> > type; static type call(SegmentedRange const &range, Where const &where) { return fusion::make_cons( range , fusion::make_cons( segmented_range
(*fusion::begin(range), where) ) ); } }; template< typename SegmentedRange , typename Where , typename Sequence > struct as_segmented_cons
{ typedef cons
type; static type call(SegmentedRange const &range, Where const &where) { return fusion::make_cons(range, where); } }; template< typename SegmentedRange , typename Pred , bool IsEmpty = is_empty
::value > struct static_find_if_s_seg { typedef typename SegmentedRange::iterator_type first; typedef typename result_of::deref
::type segment_ref; typedef typename remove_reference
::type segment; typedef static_find_if_s_recurse
where; typedef range_next
next; typedef is_found
is_found; typedef as_segmented_cons
found; typedef static_find_if_s_seg
not_found; typedef typename mpl::eval_if
::type type; static type call(SegmentedRange const &range) { return call_(range, is_found()); } private: static type call_(SegmentedRange const &range, mpl::true_) { return found::call(range, where::call(*range.where_)); } static type call_(SegmentedRange const &range, mpl::false_) { return not_found::call(next::call(range)); } }; template< typename SegmentedRange , typename Pred > struct static_find_if_s_seg
{ typedef nil type; static type call(SegmentedRange const &) { return nil(); } }; template
struct static_find_if_s_recurse
{ typedef typename as_segmented_range
::type range; typedef static_find_if_s_seg
find_if; typedef typename find_if::type type; static type call(Sequence &seq) { return find_if::call(range(fusion::segments(seq))); } }; template
struct static_find_if_s_recurse
{ typedef typename result_of::find_if
::type type; static type call(Sequence &seq) { return fusion::find_if
(seq); } }; template
::value> struct static_find_if_s : static_find_if_s_recurse
{}; template
struct static_find_if_s
{ typedef typename as_segmented_range
::type range; typedef static_find_if_s_recurse
find_if; typedef typename find_if::type found; typedef segmented_iterator
::type> type; static type call(Sequence &seq) { return type(reverse_cons
::call(find_if::call(seq))); } }; }}} namespace boost { namespace fusion { namespace result_of { template
struct find_if_s { typedef typename detail::static_find_if_s< Sequence , Pred >::type type; }; } template
typename lazy_disable_if< is_const
, result_of::find_if_s
>::type find_if_s(Sequence& seq) { return detail::static_find_if_s
::call(seq); } template
typename result_of::find_if_s
::type find_if_s(Sequence const& seq) { return detail::static_find_if_s
::call(seq); } }} #endif
find_if_s.hpp
Page URL
File URL
Prev 1/1 Next
Download
( 6 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.