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