Discontinuous Galerkin Library
#include "dg/algorithm.h"
|
Indicate a contiguous chunk of shared memory. More...
Indicate a contiguous chunk of shared memory.
With this tag a class promises that the data it holds lies in a contiguous chunk that can be traversed knowing the pointer to its first element. Sub-Tags indicate addtional functionality like data resize.
size()
returns the size (in number of elements) of the contiguous datadata()
returns a pointer (or something for which the thrust::pointer_traits
are specialized) to the first element of the contiguous data. The return type must be convertible to (const) value_type*