File indexing completed on 2025-01-18 09:39:27
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef BOOST_LOG_UTILITY_FUNCTIONAL_BIND_OUTPUT_HPP_INCLUDED_
0017 #define BOOST_LOG_UTILITY_FUNCTIONAL_BIND_OUTPUT_HPP_INCLUDED_
0018
0019 #include <boost/log/detail/config.hpp>
0020 #include <boost/log/utility/functional/bind.hpp>
0021 #include <boost/log/detail/header.hpp>
0022
0023 #ifdef BOOST_HAS_PRAGMA_ONCE
0024 #pragma once
0025 #endif
0026
0027 namespace boost {
0028
0029 BOOST_LOG_OPEN_NAMESPACE
0030
0031
0032 struct output_fun
0033 {
0034 typedef void result_type;
0035
0036 template< typename StreamT, typename T >
0037 void operator() (StreamT& strm, T const& val) const
0038 {
0039 strm << val;
0040 }
0041 };
0042
0043 template< typename StreamT >
0044 BOOST_FORCEINLINE binder1st< output_fun, StreamT& > bind_output(StreamT& strm)
0045 {
0046 return binder1st< output_fun, StreamT& >(output_fun(), strm);
0047 }
0048
0049 BOOST_LOG_CLOSE_NAMESPACE
0050
0051 }
0052
0053 #include <boost/log/detail/footer.hpp>
0054
0055 #endif