Skip to content

Commit 03637e6

Browse files
committed
Removed redundant inline specifications (for function templates)
1 parent 736a3f7 commit 03637e6

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/cuda/api/copy_parameters.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ inline copy_parameters_t<3>& copy_parameters_t<3>::set_endpoint_untyped(
417417

418418
template<>
419419
template<typename T>
420-
inline copy_parameters_t<2>& copy_parameters_t<2>::set_endpoint(
420+
copy_parameters_t<2>& copy_parameters_t<2>::set_endpoint(
421421
endpoint_t endpoint,
422422
context::handle_t context_handle,
423423
T * ptr,
@@ -429,7 +429,7 @@ inline copy_parameters_t<2>& copy_parameters_t<2>::set_endpoint(
429429

430430
template<>
431431
template<typename T>
432-
inline copy_parameters_t<2>& copy_parameters_t<2>::set_endpoint(
432+
copy_parameters_t<2>& copy_parameters_t<2>::set_endpoint(
433433
endpoint_t endpoint,
434434
T * ptr,
435435
array::dimensions_t<2> dimensions)
@@ -498,7 +498,7 @@ inline copy_parameters_t<3>& copy_parameters_t<3>::set_context(endpoint_t endpoi
498498

499499
template<>
500500
template<typename T>
501-
inline copy_parameters_t<3>& copy_parameters_t<3>::set_endpoint(
501+
copy_parameters_t<3>& copy_parameters_t<3>::set_endpoint(
502502
endpoint_t endpoint,
503503
context::handle_t context_handle,
504504
T *ptr,
@@ -510,7 +510,7 @@ inline copy_parameters_t<3>& copy_parameters_t<3>::set_endpoint(
510510

511511
template<>
512512
template<typename T>
513-
inline copy_parameters_t<3>& copy_parameters_t<3>::set_endpoint(
513+
copy_parameters_t<3>& copy_parameters_t<3>::set_endpoint(
514514
endpoint_t endpoint,
515515
T *ptr,
516516
array::dimensions_t<3> dimensions)
@@ -534,7 +534,7 @@ inline copy_parameters_t<3>& copy_parameters_t<3>::clear_rest() noexcept
534534

535535
template<>
536536
template<typename T>
537-
inline copy_parameters_t<2> &copy_parameters_t<2>::set_extent(dimensions_type extent_in_elements) noexcept
537+
copy_parameters_t<2> &copy_parameters_t<2>::set_extent(dimensions_type extent_in_elements) noexcept
538538
{
539539
WidthInBytes = extent_in_elements.width * sizeof(T);
540540
Height = extent_in_elements.height;

src/cuda/api/memory.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1983,7 +1983,7 @@ void advise_no_access_expected_by(const_region_t region, device_t& device);
19831983

19841984
/// @return the devices which are marked by attribute as being the accessors of a specified memory region
19851985
template <typename Allocator = ::std::allocator<cuda::device_t> >
1986-
typename ::std::vector<device_t, Allocator> expected_accessors(const_region_t region, const Allocator& allocator = Allocator() );
1986+
::std::vector<device_t, Allocator> expected_accessors(const_region_t region, const Allocator& allocator = Allocator() );
19871987

19881988
/// Kinds of managed memory region attachments
19891989
enum class attachment_t : unsigned {

src/cuda/api/multi_wrapper_impls/virtual_memory.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ properties_t create_properties_for(const device_t& device)
3030
}
3131

3232
template<shared_handle_kind_t SharedHandleKind>
33-
inline physical_allocation_t create(size_t size, device_t device)
33+
physical_allocation_t create(size_t size, device_t device)
3434
{
3535
auto properties = create_properties_for<SharedHandleKind>(device);
3636
return create(size, properties);

src/cuda/api/pointer.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ namespace pointer {
243243
* to be wrapped.
244244
*/
245245
template<typename T>
246-
inline pointer_t<T> wrap(T* ptr) noexcept { return { ptr }; }
246+
pointer_t<T> wrap(T* ptr) noexcept { return { ptr }; }
247247

248248
} // namespace pointer
249249
} // namespace memory

0 commit comments

Comments
 (0)