18 #ifndef INCLUDED_UHD_TYPES_REF_VECTOR_HPP 19 #define INCLUDED_UHD_TYPES_REF_VECTOR_HPP 39 _ptr(T(ptr)), _mem(_mem_t(&_ptr)), _size(1)
49 template <
typename Vector>
ref_vector(
const Vector &vec):
50 _ptr(T()), _mem(_mem_t(&vec.front())), _size(vec.size())
62 _ptr(T()), _mem(_mem_t(mem)), _size(len)
ref_vector(Ptr *ptr)
Definition: ref_vector.hpp:38
size_t size(void) const
The number of elements in this container.
Definition: ref_vector.hpp:73
ref_vector(const T *mem, size_t len)
Definition: ref_vector.hpp:61
Definition: convert.hpp:28
Definition: ref_vector.hpp:31
ref_vector(const Vector &vec)
Definition: ref_vector.hpp:49
#define UHD_API
Definition: config.h:66
const T & operator[](size_t index) const
Index operator gets the value of rv[index].
Definition: ref_vector.hpp:68