Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:52:35

0001 #ifndef BOOST_SYSTEM_DETAIL_APPEND_INT_HPP_INCLUDED
0002 #define BOOST_SYSTEM_DETAIL_APPEND_INT_HPP_INCLUDED
0003 
0004 // Copyright 2021 Peter Dimov
0005 // Distributed under the Boost Software License, Version 1.0.
0006 // https://www.boost.org/LICENSE_1_0.txt)
0007 
0008 #include <boost/system/detail/snprintf.hpp>
0009 #include <string>
0010 
0011 //
0012 
0013 namespace boost
0014 {
0015 namespace system
0016 {
0017 namespace detail
0018 {
0019 
0020 inline void append_int( std::string& s, int v )
0021 {
0022     char buffer[ 32 ];
0023     detail::snprintf( buffer, sizeof( buffer ), ":%d", v );
0024 
0025     s += buffer;
0026 }
0027 
0028 } // namespace detail
0029 } // namespace system
0030 } // namespace boost
0031 
0032 #endif // #ifndef BOOST_SYSTEM_DETAIL_APPEND_INT_HPP_INCLUDED