mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-10 19:52:50 -06:00
restore the sharing of sequences. Shrinks the grammar by ~45%
This commit is contained in:
@@ -30,4 +30,10 @@ ref<A> vector_elem(ref<Vector<A>> v, size_t index)
|
||||
return ref<A>::from_ptr(&v->data[index]);
|
||||
}
|
||||
|
||||
template <class A> inline
|
||||
A *vector_elem(Vector<A> *v, size_t index)
|
||||
{
|
||||
return &v->data[index];
|
||||
}
|
||||
|
||||
#endif // VECTOR_H
|
||||
|
||||
Reference in New Issue
Block a user