Functions: Various improvements to the spans and generic data structures

Most of this code is covered by unit tests.
This commit is contained in:
2020-06-22 15:48:08 +02:00
parent 7117ed9691
commit 6223385043
11 changed files with 401 additions and 204 deletions

View File

@@ -135,6 +135,10 @@ class MFSignatureBuilder {
{
this->mutable_(name, MFDataType::ForSingle(type));
}
template<typename T> void vector_mutable(StringRef name)
{
this->vector_mutable(name, CPPType::get<T>());
}
void vector_mutable(StringRef name, const CPPType &base_type)
{
this->mutable_(name, MFDataType::ForVector(base_type));