Gromacs  2018.8
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Functions
arrayref.h File Reference
#include <cstddef>
#include <array>
#include <iterator>
#include <stdexcept>
#include <utility>
#include <vector>
#include "gromacs/utility/gmxassert.h"
+ Include dependency graph for arrayref.h:
+ This graph shows which files directly or indirectly include this file:

Description

Declares gmx::ArrayRef.

Author
Teemu Murtola teemu.nosp@m..mur.nosp@m.tola@.nosp@m.gmai.nosp@m.l.com

Classes

struct  gmx::EmptyArrayRef
 Tag type to initialize empty array references. More...
 
class  gmx::ArrayRef< T >
 STL-like container for an interface to a C array of T (or part of a std::vector<T, A> or std::array<T>). More...
 

Functions

template<typename T >
ArrayRef< typename
std::conditional
< std::is_const< T >::value,
const typename T::value_type,
typename T::value_type >::type > 
gmx::makeArrayRef (T &c)
 Create ArrayRef from container with type deduction. More...
 
template<typename T >
ArrayRef< const typename
T::value_type > 
gmx::makeConstArrayRef (const T &c)
 Create ArrayRef to const T from container with type deduction. More...
 
template<typename T >
void gmx::swap (ArrayRef< T > &a, ArrayRef< T > &b)
 Simple swap method for ArrayRef objects. More...