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
10 #include <sycl/exception_list.hpp>
11 
12 #include <utility>
13 
14 namespace sycl {
15 inline namespace _V1 {
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) {
24  MList.emplace_back(Value);
25 }
26 
27 void exception_list::PushBack(value_type &&Value) {
28  MList.emplace_back(std::move(Value));
29 }
30 
31 void exception_list::Clear() noexcept { MList.clear(); }
32 
33 } // namespace _V1
34 } // namespace sycl
std::vector< std::exception_ptr >::const_iterator iterator
const void value_type
Definition: multi_ptr.hpp:457
Definition: access.hpp:18
_Abi const simd< _Tp, _Abi > & noexcept
Definition: simd.hpp:1324