Open C++ Libraries.org develop
Loading...
Searching...
No Matches
config.hpp
1// SPDX-License-Identifier: BSL-1.0
2// Copyright 2025-2026, Amlal El Mahrouss (amlal@nekernel.org)
3// Distributed under the Boost Software License, Version 1.0. (See accompanying
4// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5// Official repository: https://github.com/open-cpp-libraries/tproc
6
7#ifndef OCL_TPROC_CONFIG
8#define OCL_TPROC_CONFIG
9
10#include <boost/assert/source_location.hpp>
11#include <ocl/detail/config.hpp>
12#include <boost/core/detail/string_view.hpp>
13
14namespace ocl::tproc
15{
16
17 namespace detail
18 {
19
20 inline void throw_invalid_range(const auto sc = BOOST_CURRENT_LOCATION)
21 {
22 throw std::out_of_range(sc.to_string());
23 }
24
25 inline void throw_bad_alloc()
26 {
27 throw std::bad_alloc();
28 }
29
30 } // namespace detail
31
32} // namespace ocl::tproc
33
34#endif // ifndef OCL_TPROC_CONFIG
AMLALE: SourcePair desrves documentation by themselves.
Definition bfs.hpp:13