Reference documentation for deal.II version 9.2.0
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Classes | Functions
MemorySpace Namespace Reference

Classes

struct  CUDA
 
struct  Host
 
struct  MemorySpaceData
 

Functions

template<typename Number , typename MemorySpace >
void swap (MemorySpaceData< Number, MemorySpace > &, MemorySpaceData< Number, MemorySpace > &)
 

Function Documentation

◆ swap()

template<typename Number , typename MemorySpace >
void MemorySpace::swap ( MemorySpaceData< Number, MemorySpace > &  ,
MemorySpaceData< Number, MemorySpace > &   
)
inline

Swap function similar to std::swap.

Definition at line 103 of file memory_space.h.