Skip to content

Commit 8a4975d

Browse files
committed
Removed vendor namespace
1 parent f0602ae commit 8a4975d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

multi_ptr-cast/sycl-2.2/index.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ we propose adding the following free functions to the `cl::sycl` namespace:
9191
```cpp
9292
namespace cl {
9393
namespace sycl {
94-
namespace codeplay {
9594
9695
// Performs a static_cast of the contained pointer
9796
template <typename ElementTypeU, typename ElementTypeT, access::address_space Space>
@@ -113,7 +112,6 @@ template <typename ElementTypeU, typename ElementTypeT, access::address_space Sp
113112
multi_ptr<ElementTypeU, Space>
114113
reinterpret_pointer_cast(const multi_ptr<ElementTypeT, Space>& multiPtr);
115114
116-
} // namespace codeplay
117115
} // namespace sycl
118116
} // namespace cl
119117
```
@@ -139,7 +137,7 @@ but the same operation is valid on any other `multi_ptr` type.
139137

140138
```cpp
141139
using namespace cl::sycl;
142-
using namespace codeplay;
140+
143141
const global_ptr<int> ptrInt = get_some_global_ptr<int>();
144142

145143
// Conversion operator
@@ -175,7 +173,6 @@ struct Derived : public Base {
175173
};
176174
177175
using namespace cl::sycl;
178-
using namespace codeplay;
179176
const global_ptr<Base> ptrBase = get_some_global_ptr<int>();
180177
181178
auto ptrDerived = dynamic_pointer_cast<Derived>(ptrBase);
@@ -186,7 +183,6 @@ auto ptrBase1 = dynamic_pointer_cast<Base>(ptrDerived);
186183

187184
```cpp
188185
using namespace cl::sycl;
189-
using namespace codeplay;
190186

191187
template <typename ElementType, access::address_space Space>
192188
void function_taking_ptr(const multi_ptr<ElementType, Space>& ptr);

0 commit comments

Comments
 (0)