Swap.H File Reference

Swap arguments as per std::swap, but in Foam namespace. More...

Include dependency graph for Swap.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 Foam
 Namespace for OpenFOAM.
 

Functions

template<class T >
void Swap (T &a, T &b)
 Swap non-array types as per std::swap, but in Foam namespace. More...
 
template<class T , size_t N>
void Swap (T(&a)[N], T(&b)[N])
 Swap array types as per std::swap example, but in Foam namespace. More...
 

Detailed Description

Swap arguments as per std::swap, but in Foam namespace.

Original source file Swap.H

InNamespace Foam

For complex structures, it is usual to provide a member swap() method and a function specialization for Swap().

Definition in file Swap.H.