|
template<typename I > |
static void | resize (CT &ref, I *n, int d) |
| resize container More...
|
|
static size_t | getSize (const CT &ref) |
| get the current linear storage size of a container More...
|
|
static auto | getElementPtr (CT &ref) |
| get the linear storage pointer of a container More...
|
|
template<typename CT>
struct qmcplusplus::container_traits< CT >
Definition at line 22 of file container_traits.h.
◆ element_type
◆ getElementPtr()
static auto getElementPtr |
( |
CT & |
ref | ) |
|
|
inlinestatic |
get the linear storage pointer of a container
Definition at line 41 of file container_traits.h.
41 {
return ref.data(); }
◆ getSize()
static size_t getSize |
( |
const CT & |
ref | ) |
|
|
inlinestatic |
get the current linear storage size of a container
Definition at line 38 of file container_traits.h.
38 {
return ref.size(); }
◆ resize()
static void resize |
( |
CT & |
ref, |
|
|
I * |
n, |
|
|
int |
d |
|
) |
| |
|
inlinestatic |
resize container
- Parameters
-
n | the size of all the dimensions |
d | the number of dimensions |
Definition at line 32 of file container_traits.h.
34 throw std::runtime_error(
"Unknown container, resizing is not available!");
The documentation for this struct was generated from the following file: