Tinker9 70bd052 (Thu Nov 9 12:11:35 2023 -0800)
Loading...
Searching...
No Matches
ptrtrait.h
1#pragma once
2#include <cstddef>
3#include <type_traits>
4
5namespace tinker {
18template <class PTR>
19struct PtrTrait;
20
21template <class T>
22struct PtrTrait<T*>
23{
24 typedef T type;
25 static constexpr size_t n = 1;
26};
27
28template <class T, size_t N>
29struct PtrTrait<T (*)[N]>
30{
31 typedef T type;
32 static constexpr size_t n = N;
33};
34}
Definition: ptrtrait.h:19
int n
Number of atoms padded by WARP_SIZE.
Definition: testrt.h:9
T type
Definition: ptrtrait.h:24
T type
Definition: ptrtrait.h:31