forked from triSYCL/triSYCL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
container_element_aspect.hpp
47 lines (35 loc) · 1.02 KB
/
container_element_aspect.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#ifndef TRISYCL_SYCL_DETAIL_CONTAINER_ELEMENT_ASPECT_HPP
#define TRISYCL_SYCL_DETAIL_CONTAINER_ELEMENT_ASPECT_HPP
/** \file Implement basic types à la STL related to container
elements, such as value_type, reference...
Ronan at Keryell point FR
This file is distributed under the University of Illinois Open Source
License. See LICENSE.TXT for details.
*/
namespace cl {
namespace sycl {
namespace detail {
/** \addtogroup helpers Some helpers for the implementation
@{
*/
/// A mix-in to add some container element aspects
template <typename T>
struct container_element_aspect {
using value_type = T;
using pointer = value_type*;
using const_pointer = const value_type*;
using reference = value_type&;
using const_reference = const value_type&;
};
/// @} End the helpers Doxygen group
}
}
}
/*
# Some Emacs stuff:
### Local Variables:
### ispell-local-dictionary: "american"
### eval: (flyspell-prog-mode)
### End:
*/
#endif // TRISYCL_SYCL_DETAIL_CONTAINER_ELEMENT_ASPECT_HPP