[arrays] Reduce Supplier<> even further
This commit is contained in:
parent
1bcc4fc9f3
commit
84c1865821
@ -231,28 +231,10 @@ inline hb_sorted_array_t<T> hb_sorted_array (T *array, unsigned int len)
|
|||||||
|
|
||||||
typedef hb_array_t<const char> hb_bytes_t;
|
typedef hb_array_t<const char> hb_bytes_t;
|
||||||
|
|
||||||
|
template <typename Type> struct Supplier : hb_array_t<const Type>
|
||||||
/*
|
|
||||||
* Supplier
|
|
||||||
*/
|
|
||||||
|
|
||||||
template <typename Type>
|
|
||||||
struct Supplier : hb_array_t<const Type>
|
|
||||||
{
|
{
|
||||||
Supplier (const Type *array, unsigned int len_)
|
Supplier (const Type *array, unsigned int len) : hb_array_t<const Type> (array, len) {}
|
||||||
{
|
Supplier (hb_array_t<const Type> v) : hb_array_t<const Type> (v) {}
|
||||||
this->arrayZ = array;
|
|
||||||
this->len = len_;
|
|
||||||
}
|
|
||||||
Supplier (hb_array_t<const Type> v)
|
|
||||||
{
|
|
||||||
this->arrayZ = v.arrayZ;
|
|
||||||
this->len = v.len;
|
|
||||||
}
|
|
||||||
|
|
||||||
private:
|
|
||||||
Supplier (const Supplier<Type> &); /* Disallow copy */
|
|
||||||
Supplier<Type>& operator= (const Supplier<Type> &); /* Disallow copy */
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user