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 | Namespaces | Functions
read_write_vector.h File Reference
#include <deal.II/base/config.h>
#include <deal.II/base/index_set.h>
#include <deal.II/base/memory_consumption.h>
#include <deal.II/base/mpi.h>
#include <deal.II/base/template_constraints.h>
#include <deal.II/base/types.h>
#include <deal.II/base/utilities.h>
#include <deal.II/lac/vector_operation.h>
#include <cstdlib>
#include <cstring>
#include <iomanip>
#include <deal.II/lac/trilinos_epetra_communication_pattern.h>
#include <deal.II/lac/trilinos_epetra_vector.h>
#include <deal.II/lac/trilinos_tpetra_vector.h>
#include <Epetra_MultiVector.h>

Go to the source code of this file.

Classes

class  LinearAlgebra::ReadWriteVector< Number >
 
class  LinearAlgebra::ReadWriteVector< Number >::FunctorTemplate< Functor >
 

Namespaces

 LinearAlgebra
 

Functions

template<typename Number >
void swap (LinearAlgebra::ReadWriteVector< Number > &u, LinearAlgebra::ReadWriteVector< Number > &v)
 

Function Documentation

◆ swap()

template<typename Number >
void swap ( LinearAlgebra::ReadWriteVector< Number > &  u,
LinearAlgebra::ReadWriteVector< Number > &  v 
)
inline

Global function swap which overloads the default implementation of the C++ standard library which uses a temporary object. The function simply exchanges the data of the two vectors.

Definition at line 1046 of file read_write_vector.h.