8 #ifndef INCLUDED_UHD_TYPES_REF_VECTOR_HPP 9 #define INCLUDED_UHD_TYPES_REF_VECTOR_HPP 29 _ptr(T(ptr)), _mem(_mem_t(&_ptr)), _size(1)
39 template <
typename Vector>
ref_vector(
const Vector &vec):
40 _ptr(T()), _mem(_mem_t(&vec.front())), _size(vec.size())
52 _ptr(T()), _mem(_mem_t(mem)), _size(len)
ref_vector(Ptr *ptr)
Definition: ref_vector.hpp:28
size_t size(void) const
The number of elements in this container.
Definition: ref_vector.hpp:63
ref_vector(const T *mem, size_t len)
Definition: ref_vector.hpp:51
Definition: build_info.hpp:14
Definition: ref_vector.hpp:21
ref_vector(const Vector &vec)
Definition: ref_vector.hpp:39
#define UHD_API
Definition: config.h:63
const T & operator[](size_t index) const
Index operator gets the value of rv[index].
Definition: ref_vector.hpp:58