Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:29:28

0001 //
0002 // Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot com)
0003 //
0004 // Distributed under the Boost Software License, Version 1.0. (See accompanying
0005 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0006 //
0007 // Official repository: https://github.com/boostorg/beast
0008 //
0009 
0010 #ifndef BOOST_BEAST_STATIC_STRING_HPP
0011 #define BOOST_BEAST_STATIC_STRING_HPP
0012 
0013 #include <boost/beast/core/detail/static_string.hpp>
0014 #include <boost/static_string/static_string.hpp>
0015 
0016 namespace boost {
0017 namespace beast {
0018 
0019 template<std::size_t N,
0020     class CharT = char,
0021     class Traits = std::char_traits<CharT> >
0022 using static_string = boost::static_strings::basic_static_string<N, CharT,
0023     Traits>;
0024 
0025 template<class Integer>
0026 inline auto
0027 to_static_string(Integer x)
0028 -> decltype(boost::static_strings::to_static_string(x))
0029 {
0030     return boost::static_strings::to_static_string(x);
0031 }
0032 
0033 } // beast
0034 } // boost
0035 
0036 #endif