DPC++ Runtime
Runtime libraries for oneAPI DPC++
exception_list.cpp
Go to the documentation of this file.
1 //==---------------- exception_list.cpp - SYCL exception_list ---------------==//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 // 4.9.2 Exception Class Interface
11 
12 #include <utility>
13 
15 namespace sycl {
16 
17 exception_list::size_type exception_list::size() const { return MList.size(); }
18 
19 exception_list::iterator exception_list::begin() const { return MList.begin(); }
20 
21 exception_list::iterator exception_list::end() const { return MList.cend(); }
22 
23 void exception_list::PushBack(const_reference Value) { MList.emplace_back(Value); }
24 
25 void exception_list::PushBack(value_type&& Value) { MList.emplace_back(std::move(Value)); }
26 
27 void exception_list::Clear() noexcept { MList.clear(); }
28 
29 } // namespace sycl
30 } // __SYCL_INLINE_NAMESPACE(cl)
sycl
Definition: invoke_simd.hpp:68
cl
We provide new interfaces for matrix muliply in this patch:
Definition: access.hpp:13
cl::sycl::exception_list::size_type
std::size_t size_type
Definition: exception_list.hpp:35
cl::sycl::exception_list::iterator
std::vector< std::exception_ptr >::const_iterator iterator
Definition: exception_list.hpp:36
exception_list.hpp
__SYCL_INLINE_NAMESPACE
#define __SYCL_INLINE_NAMESPACE(X)
Definition: defines_elementary.hpp:12