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
// (C) Copyright Gennadiy Rozental 2002-2007. // (C) Copyright Daryle Walker 2000-2001. // 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) // See http://www.boost.org/libs/test for the library home page. // // File : $RCSfile$ // // Version : $Revision: 41369 $ // // Description : simulate /dev/null stream // *************************************************************************** #ifndef BOOST_NULLSTREAM_HPP_071894GER #define BOOST_NULLSTREAM_HPP_071894GER #include
// for std::basic_ostream #include
// for std::basic_streambuf #include
// for std::char_traits #include
#include
//____________________________________________________________________________// namespace boost { // ************************************************************************** // // ************** basic_nullbuf ************** // // ************************************************************************** // // Class for a buffer that reads nothing and writes to nothing. // Idea from an Usenet post by Tom
at // 27 Oct 2000 14:06:21 GMT on comp.lang.c++. template
> class basic_nullbuf : public ::std::basic_streambuf
{ typedef ::std::basic_streambuf
base_type; public: // Types typedef typename base_type::char_type char_type; typedef typename base_type::traits_type traits_type; typedef typename base_type::int_type int_type; typedef typename base_type::pos_type pos_type; typedef typename base_type::off_type off_type; // Use automatic default constructor and destructor protected: // The default implementations of the miscellaneous virtual // member functions are sufficient. // The default implementations of the input & putback virtual // member functions, being nowhere but EOF, are sufficient. // The output virtual member functions need to be changed to // accept anything without any problems, instead of being at EOF. virtual ::std::streamsize xsputn( char_type const* /*s*/, ::std::streamsize n ) { return n; } // "s" is unused virtual int_type overflow( int_type c = traits_type::eof() ) { return traits_type::not_eof( c ); } }; typedef basic_nullbuf
nullbuf; typedef basic_nullbuf
wnullbuf; // ************************************************************************** // // ************** basic_onullstream ************** // // ************************************************************************** // // Output streams based on basic_nullbuf. #ifdef BOOST_MSVC # pragma warning(push) # pragma warning(disable: 4355) // 'this' : used in base member initializer list #endif template< typename CharType, class CharTraits = ::std::char_traits
> class basic_onullstream : private boost::base_from_member
> , public ::std::basic_ostream
{ typedef boost::base_from_member
> pbase_type; typedef ::std::basic_ostream
base_type; public: // Constructor basic_onullstream() : pbase_type(), base_type( &this->pbase_type::member ) {} }; #ifdef BOOST_MSVC # pragma warning(default: 4355) #endif typedef basic_onullstream
onullstream; typedef basic_onullstream
wonullstream; } // namespace boost //____________________________________________________________________________// #include
#endif // BOOST_NULLSTREAM_HPP_071894GER
nullstream.hpp
Page URL
File URL
Prev
9/13
Next
Download
( 3 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.