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
// - casts.hpp -- BLambda Library ------------- // // Copyright (C) 2000 Gary Powell (powellg@amazon.com) // Copyright (C) 1999, 2000 Jaakko J�rvi (jaakko.jarvi@cs.utu.fi) // // 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) // // For more information, see http://www.boost.org // ----------------------------------------------- #if !defined(BOOST_LAMBDA_CASTS_HPP) #define BOOST_LAMBDA_CASTS_HPP #include
namespace boost { namespace lambda { template
class cast_action; template
class static_cast_action; template
class dynamic_cast_action; template
class const_cast_action; template
class reinterpret_cast_action; class typeid_action; class sizeof_action; // Cast actions template
class cast_action
> { public: template
static RET apply(Arg1 &a1) { return static_cast
(a1); } }; template
class cast_action
> { public: template
static RET apply(Arg1 &a1) { return dynamic_cast
(a1); } }; template
class cast_action
> { public: template
static RET apply(Arg1 &a1) { return const_cast
(a1); } }; template
class cast_action
> { public: template
static RET apply(Arg1 &a1) { return reinterpret_cast
(a1); } }; // typedid action class typeid_action { public: template
static RET apply(Arg1 &a1) { return typeid(a1); } }; // sizeof action class sizeof_action { public: template
static RET apply(Arg1 &a1) { return sizeof(a1); } }; // return types of casting lambda_functors (all "T" type.) template
class cast_type, class T, class A> struct return_type_N
>, A> { typedef T type; }; // return type of typeid_action template
struct return_type_N
{ typedef std::type_info const & type; }; // return type of sizeof_action template
struct return_type_N
{ typedef std::size_t type; }; // the four cast & typeid overloads. // casts can take ordinary variables (not just lambda functors) // static_cast template
inline const lambda_functor< lambda_functor_base< action<1, cast_action
> >, tuple
::type> > > ll_static_cast(const Arg1& a1) { return lambda_functor_base< action<1, cast_action
> >, tuple
::type> > ( tuple
::type>(a1)); } // dynamic_cast template
inline const lambda_functor< lambda_functor_base< action<1, cast_action
> >, tuple
::type> > > ll_dynamic_cast(const Arg1& a1) { return lambda_functor_base< action<1, cast_action
> >, tuple
::type> > ( tuple
::type>(a1)); } // const_cast template
inline const lambda_functor< lambda_functor_base< action<1, cast_action
> >, tuple
::type> > > ll_const_cast(const Arg1& a1) { return lambda_functor_base< action<1, cast_action
> >, tuple
::type> > ( tuple
::type>(a1)); } // reinterpret_cast template
inline const lambda_functor< lambda_functor_base< action<1, cast_action
> >, tuple
::type> > > ll_reinterpret_cast(const Arg1& a1) { return lambda_functor_base< action<1, cast_action
> >, tuple
::type> > ( tuple
::type>(a1)); } // typeid // can be applied to a normal variable as well (can refer to a polymorphic // class object) template
inline const lambda_functor< lambda_functor_base< action<1, typeid_action>, tuple
::type> > > ll_typeid(const Arg1& a1) { return lambda_functor_base< action<1, typeid_action>, tuple
::type> > ( tuple
::type>(a1)); } // sizeof(expression) // Always takes a lambda expression (if not, built in sizeof will do) template
inline const lambda_functor< lambda_functor_base< action<1, sizeof_action>, tuple
> > > ll_sizeof(const lambda_functor
& a1) { return lambda_functor_base< action<1, sizeof_action>, tuple
> > ( tuple
>(a1)); } } // namespace lambda } // namespace boost #endif
casts.hpp
Page URL
File URL
Prev
3/13
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.