Gromacs
2024.3
|
#include <cassert>
#include <cstddef>
#include <array>
#include <iterator>
#include <stdexcept>
#include <utility>
#include <vector>
#include <gromacs/external/boost/stl_interfaces/iterator_interface.hpp>
Declares gmx::ArrayRef.
Classes | |
class | gmx::ArrayRef< typename > |
STL-like interface to a C array of T (or part of a std container of T). More... | |
Functions | |
template<typename T > | |
ArrayRef< std::conditional_t < std::is_const< T >::value, const typename T::value_type, typename T::value_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... | |
template<typename T > | |
std::vector< T > | gmx::copyOf (const ArrayRef< const T > &arrayRef) |
Return a vector that is a copy of an ArrayRef. More... | |