Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:39:22

0001 /*
0002  *             Copyright Andrey Semashev 2019.
0003  * Distributed under the Boost Software License, Version 1.0.
0004  *    (See accompanying file LICENSE_1_0.txt or copy at
0005  *          https://www.boost.org/LICENSE_1_0.txt)
0006  */
0007 /*!
0008  * \file   expressions/formatters/auto_newline.hpp
0009  * \author Andrey Semashev
0010  * \date   23.06.2019
0011  *
0012  * The header contains implementation of formatter for inserting a newline, unless there is already one inserted.
0013  */
0014 
0015 #ifndef BOOST_LOG_EXPRESSIONS_FORMATTERS_AUTO_NEWLINE_HPP_INCLUDED_
0016 #define BOOST_LOG_EXPRESSIONS_FORMATTERS_AUTO_NEWLINE_HPP_INCLUDED_
0017 
0018 #include <boost/log/detail/config.hpp>
0019 #include <boost/log/utility/manipulators/auto_newline.hpp>
0020 #include <boost/log/detail/header.hpp>
0021 
0022 #ifdef BOOST_HAS_PRAGMA_ONCE
0023 #pragma once
0024 #endif
0025 
0026 namespace boost {
0027 
0028 BOOST_LOG_OPEN_NAMESPACE
0029 
0030 namespace expressions {
0031 
0032 /*!
0033  * Formatter for inserting a newline character, unless the last character
0034  * inserted into the stream is already a newline.
0035  */
0036 using boost::log::auto_newline;
0037 
0038 } // namespace expressions
0039 
0040 BOOST_LOG_CLOSE_NAMESPACE // namespace log
0041 
0042 } // namespace boost
0043 
0044 #include <boost/log/detail/footer.hpp>
0045 
0046 #endif // BOOST_LOG_EXPRESSIONS_FORMATTERS_AUTO_NEWLINE_HPP_INCLUDED_