Skip to content

Commit 4608676

Browse files
committed
Fix reference to is_property in how-to
Signed-off-by: Steffen Larsen <[email protected]>
1 parent 4f41fd4 commit 4608676

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

sycl/include/sycl/ext/oneapi/properties/property.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
// key. The variable should have the same type as `value_t` of the property
2020
// class, e.g. for a property `foo`, there should be a definition
2121
// `inline constexpr foo_key::value_t foo`.
22-
// 4. Specialize `sycl::ext::oneapi::experimental::is_property` and
23-
// `sycl::ext::oneapi::experimental::is_property_of` for the property key
22+
// 4. Specialize `sycl::ext::oneapi::experimental::is_property_key` and
23+
// `sycl::ext::oneapi::experimental::is_property_key_of` for the property key
2424
// class.
2525
// 5. Specialize `sycl::ext::oneapi::experimental::detail::PropertyToKind` for
2626
// the new property key class. The specialization should have a `Kind`
@@ -49,9 +49,9 @@ struct bar_key {
4949
inline constexpr bar_key::value_t bar;
5050
5151
// (4.)
52-
template <> struct is_property<bar_key> : std::true_type {};
52+
template <> struct is_property_key<bar_key> : std::true_type {};
5353
// Replace SYCL_OBJ with the SYCL object to support the property.
54-
template <> struct is_property_of<bar_key, SYCL_OBJ> : std::true_type {};
54+
template <> struct is_property_key_of<bar_key, SYCL_OBJ> : std::true_type {};
5555
5656
namespace detail {
5757
@@ -77,8 +77,8 @@ template <> struct IsCompileTimeProperty<bar_key> : std::true_type {};
7777
// property `foo` the class should be named `foo_key`.
7878
// 4. Overload the `==` and `!=` operators for the new property class. The
7979
// comparison should compare all data members of the property class.
80-
// 5. Specialize `sycl::ext::oneapi::experimental::is_property` and
81-
// `sycl::ext::oneapi::experimental::is_property_of` for the property class.
80+
// 5. Specialize `sycl::ext::oneapi::experimental::is_property_key` and
81+
// `sycl::ext::oneapi::experimental::is_property_key_of` for the property class.
8282
// 6. Specialize `sycl::ext::oneapi::detail::PropertyToKind` for the new
8383
// property class. The specialization should have a `Kind` member with the
8484
// value equal to the enumerator added in 1.

0 commit comments

Comments
 (0)