/usr/include/boost/test/utils
NameSizeModeActions
basic_cstring/-0755rm
iterator/-0755rm
runtime/-0755rm
algorithm.hpp136710644editdlrm
assign_op.hpp10980644editdlrm
class_properties.hpp81640644editdlrm
custom_manip.hpp18980644editdlrm
foreach.hpp117940644editdlrm
is_cstring.hpp42940644editdlrm
is_forward_iterable.hpp84560644editdlrm
lazy_ostream.hpp47340644editdlrm
named_params.hpp145440644editdlrm
nullstream.hpp39900644editdlrm
rtti.hpp18450644editdlrm
setcolor.hpp93150644editdlrm
string_cast.hpp20020644editdlrm
timer.hpp50180644editdlrm
wrap_stringstream.hpp49050644editdlrm
xml_printer.hpp40510644editdlrm
Edit: /usr/include/boost/test/utils/custom_manip.hpp (1898B)
// (C) Copyright Gennadiy Rozental 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$ // // Description : simple helpers for creating cusom output manipulators // *************************************************************************** #ifndef BOOST_TEST_UTILS_CUSTOM_MANIP_HPP #define BOOST_TEST_UTILS_CUSTOM_MANIP_HPP // STL #include #include //____________________________________________________________________________// namespace boost { namespace unit_test { namespace utils { // ************************************************************************** // // ************** custom manipulators helpers ************** // // ************************************************************************** // template struct custom_printer { explicit custom_printer( std::ostream& ostr ) : m_ostr( &ostr ) {} std::ostream& operator*() const { return *m_ostr; } private: std::ostream* const m_ostr; }; //____________________________________________________________________________// template struct custom_manip {}; //____________________________________________________________________________// template inline custom_printer > operator<<( std::ostream& ostr, custom_manip const& ) { return custom_printer >( ostr ); } //____________________________________________________________________________// } // namespace utils } // namespace unit_test } // namespace boost #include #endif // BOOST_TEST_UTILS_CUSTOM_MANIP_HPP