Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:51:40

0001 /*
0002   An output iterator which simply discards output.
0003 */
0004 // Copyright Frank Mori Hess 2008.
0005 // Distributed under the Boost Software License, Version
0006 // 1.0. (See accompanying file LICENSE_1_0.txt or copy at
0007 // http://www.boost.org/LICENSE_1_0.txt)
0008 
0009 // See http://www.boost.org/libs/signals2 for library home page.
0010 
0011 #ifndef BOOST_SIGNALS2_NULL_OUTPUT_ITERATOR_HPP
0012 #define BOOST_SIGNALS2_NULL_OUTPUT_ITERATOR_HPP
0013 
0014 #include <boost/iterator/function_output_iterator.hpp>
0015 
0016 namespace boost
0017 {
0018   namespace signals2
0019   {
0020     namespace detail
0021     {
0022       class does_nothing
0023       {
0024       public:
0025         template<typename T>
0026           void operator()(const T&) const
0027           {}
0028       };
0029       typedef boost::function_output_iterator<does_nothing> null_output_iterator;
0030     } // namespace detail
0031   } // namespace signals2
0032 } // namespace boost
0033 
0034 #endif  // BOOST_SIGNALS2_NULL_OUTPUT_ITERATOR_HPP