Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/boost/unordered/detail/throw_exception.hpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // Copyright (C) 2023 Braden Ganetsky
0002 // Distributed under the Boost Software License, Version 1.0. (See accompanying
0003 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0004 
0005 #ifndef BOOST_UNORDERED_DETAIL_THROW_EXCEPTION_HPP
0006 #define BOOST_UNORDERED_DETAIL_THROW_EXCEPTION_HPP
0007 
0008 #include <boost/config.hpp>
0009 #if defined(BOOST_HAS_PRAGMA_ONCE)
0010 #pragma once
0011 #endif
0012 
0013 #include <boost/throw_exception.hpp>
0014 #include <stdexcept>
0015 
0016 namespace boost {
0017   namespace unordered {
0018     namespace detail {
0019 
0020       BOOST_NOINLINE BOOST_NORETURN inline void throw_out_of_range(
0021         char const* message)
0022       {
0023         boost::throw_exception(std::out_of_range(message));
0024       }
0025 
0026     } // namespace detail
0027   } // namespace unordered
0028 } // namespace boost
0029 
0030 #endif // BOOST_UNORDERED_DETAIL_THROW_EXCEPTION_HPP