Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:30:40

0001 #ifndef BOOST_DESCRIBE_DETAIL_CX_STREQ_HPP_INCLUDED
0002 #define BOOST_DESCRIBE_DETAIL_CX_STREQ_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/describe/detail/config.hpp>
0009 
0010 #if defined(BOOST_DESCRIBE_CXX11)
0011 
0012 namespace boost
0013 {
0014 namespace describe
0015 {
0016 namespace detail
0017 {
0018 
0019 constexpr bool cx_streq( char const * s1, char const * s2 )
0020 {
0021     return s1[0] == s2[0] && ( s1[0] == 0 || cx_streq( s1 + 1, s2 + 1 ) );
0022 }
0023 
0024 } // namespace detail
0025 } // namespace describe
0026 } // namespace boost
0027 
0028 #endif // defined(BOOST_DESCRIBE_CXX11)
0029 
0030 #endif // #ifndef BOOST_DESCRIBE_DETAIL_CX_STREQ_HPP_INCLUDED