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
__SYCL_INLINE_VER_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
}
// __SYCL_INLINE_VER_NAMESPACE(_V1)
34
}
// namespace sycl
__SYCL_INLINE_VER_NAMESPACE
#define __SYCL_INLINE_VER_NAMESPACE(X)
Definition:
defines_elementary.hpp:11
sycl
---— Error handling, matching OpenCL plugin semantics.
Definition:
access.hpp:14
sycl::_V1::exception_list::iterator
std::vector< std::exception_ptr >::const_iterator iterator
Definition:
exception_list.hpp:37
sycl::_V1::exception_list::size_type
std::size_t size_type
Definition:
exception_list.hpp:36
exception_list.hpp
source
exception_list.cpp
Generated by
1.8.17