1 /* 2 * Copyright Andrey Semashev 2019. 3 * Distributed under the Boost Software License, Version 1.0. 4 * (See accompanying file LICENSE_1_0.txt or copy at 5 * https://www.boost.org/LICENSE_1_0.txt) 6 */ 7 /*! 8 * \file expressions/formatters/auto_newline.hpp 9 * \author Andrey Semashev 10 * \date 23.06.2019 11 * 12 * The header contains implementation of formatter for inserting a newline, unless there is already one inserted. 13 */ 14 15 #ifndef BOOST_LOG_EXPRESSIONS_FORMATTERS_AUTO_NEWLINE_HPP_INCLUDED_ 16 #define BOOST_LOG_EXPRESSIONS_FORMATTERS_AUTO_NEWLINE_HPP_INCLUDED_ 17 18 #include <boost/log/detail/config.hpp> 19 #include <boost/log/utility/manipulators/auto_newline.hpp> 20 #include <boost/log/detail/header.hpp> 21 22 #ifdef BOOST_HAS_PRAGMA_ONCE 23 #pragma once 24 #endif 25 26 namespace boost { 27 28 BOOST_LOG_OPEN_NAMESPACE 29 30 namespace expressions { 31 32 /*! 33 * Formatter for inserting a newline character, unless the last character 34 * inserted into the stream is already a newline. 35 */ 36 using boost::log::auto_newline; 37 38 } // namespace expressions 39 40 BOOST_LOG_CLOSE_NAMESPACE // namespace log 41 42 } // namespace boost 43 44 #include <boost/log/detail/footer.hpp> 45 46 #endif // BOOST_LOG_EXPRESSIONS_FORMATTERS_AUTO_NEWLINE_HPP_INCLUDED_ 47