Server IP : 104.21.38.3 / Your IP : 172.71.124.9 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /www/server/mysql/src/boost/boost_1_59_0/boost/iostreams/ |
Upload File : |
// (C) Copyright 2008 CodeRage, LLC (turkanis at coderage dot com) // (C) Copyright 2003-2007 Jonathan Turkanis // 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/iostreams for documentation. #ifndef BOOST_IOSTREAMS_CONCEPTS_HPP_INCLUDED #define BOOST_IOSTREAMS_CONCEPTS_HPP_INCLUDED #if defined(_MSC_VER) && (_MSC_VER >= 1020) # pragma once #endif #include <boost/config.hpp> // BOOST_MSVC #include <boost/detail/workaround.hpp> #include <boost/iostreams/categories.hpp> #include <boost/iostreams/detail/default_arg.hpp> #include <boost/iostreams/detail/ios.hpp> // openmode. #include <boost/iostreams/positioning.hpp> #include <boost/static_assert.hpp> #include <boost/type_traits/is_convertible.hpp> namespace boost { namespace iostreams { //--------------Definitions of helper templates for device concepts-----------// template<typename Mode, typename Ch = BOOST_IOSTREAMS_DEFAULT_ARG(char)> struct device { typedef Ch char_type; struct category : Mode, device_tag, closable_tag, localizable_tag { }; void close() { using namespace detail; BOOST_STATIC_ASSERT((!is_convertible<Mode, two_sequence>::value)); } void close(BOOST_IOS::openmode) { using namespace detail; BOOST_STATIC_ASSERT((is_convertible<Mode, two_sequence>::value)); } template<typename Locale> void imbue(const Locale&) { } }; template<typename Mode, typename Ch = BOOST_IOSTREAMS_DEFAULT_ARG(wchar_t)> struct wdevice : device<Mode, Ch> { }; typedef device<input> source; typedef wdevice<input> wsource; typedef device<output> sink; typedef wdevice<output> wsink; //--------------Definitions of helper templates for simple filter concepts----// template<typename Mode, typename Ch = BOOST_IOSTREAMS_DEFAULT_ARG(char)> struct filter { typedef Ch char_type; struct category : Mode, filter_tag, closable_tag, localizable_tag { }; template<typename Device> void close(Device&) { using namespace detail; BOOST_STATIC_ASSERT((!is_convertible<Mode, two_sequence>::value)); BOOST_STATIC_ASSERT((!is_convertible<Mode, dual_use>::value)); } template<typename Device> void close(Device&, BOOST_IOS::openmode) { using namespace detail; BOOST_STATIC_ASSERT( (is_convertible<Mode, two_sequence>::value) || (is_convertible<Mode, dual_use>::value) ); } template<typename Locale> void imbue(const Locale&) { } }; template<typename Mode, typename Ch = BOOST_IOSTREAMS_DEFAULT_ARG(wchar_t)> struct wfilter : filter<Mode, Ch> { }; typedef filter<input> input_filter; typedef wfilter<input> input_wfilter; typedef filter<output> output_filter; typedef wfilter<output> output_wfilter; typedef filter<seekable> seekable_filter; typedef wfilter<seekable> seekable_wfilter; typedef filter<dual_use> dual_use_filter; typedef wfilter<dual_use> dual_use_wfilter; //------Definitions of helper templates for multi-character filter cncepts----// template<typename Mode, typename Ch = char> struct multichar_filter : filter<Mode, Ch> { struct category : filter<Mode, Ch>::category, multichar_tag { }; }; template<typename Mode, typename Ch = wchar_t> struct multichar_wfilter : multichar_filter<Mode, Ch> { }; typedef multichar_filter<input> multichar_input_filter; typedef multichar_wfilter<input> multichar_input_wfilter; typedef multichar_filter<output> multichar_output_filter; typedef multichar_wfilter<output> multichar_output_wfilter; typedef multichar_filter<dual_use> multichar_dual_use_filter; typedef multichar_wfilter<dual_use> multichar_dual_use_wfilter; //----------------------------------------------------------------------------// } } // End namespaces iostreams, boost. #endif // #ifndef BOOST_IOSTREAMS_CONCEPTS_HPP_INCLUDED