gt_pch_nx ((*v)[i]);
}
+template<typename T>
+void
+gt_pch_nx (vec<T, va_gc_atomic, vl_embed> *)
+{
+ /* No pointers to note. */
+}
+
template<typename T, typename A>
void
gt_pch_nx (vec<T *, A, vl_embed> *v, gt_pointer_operator op, void *cookie)
gt_pch_nx (&((*v)[i]), op, cookie);
}
+template<typename T>
+void
+gt_pch_nx (vec<T, va_gc_atomic, vl_embed> *, gt_pointer_operator, void *)
+{
+ /* No pointers to note. */
+}
+
/* Space efficient vector. These vectors can grow dynamically and are
allocated together with their control data. They are suited to be
array_slice (vec<OtherT> &v)
: m_base (v.address ()), m_size (v.length ()) {}
- template<typename OtherT>
- array_slice (const vec<OtherT, va_gc> *v)
+ template<typename OtherT, typename A>
+ array_slice (const vec<OtherT, A, vl_embed> *v)
: m_base (v ? v->address () : nullptr), m_size (v ? v->length () : 0) {}
- template<typename OtherT>
- array_slice (vec<OtherT, va_gc> *v)
+ template<typename OtherT, typename A>
+ array_slice (vec<OtherT, A, vl_embed> *v)
: m_base (v ? v->address () : nullptr), m_size (v ? v->length () : 0) {}
iterator begin () { return m_base; }