Skip to content

Add ScalarVectorView

Carsten Gräser requested to merge feature/scalarvectorview into master

Add ScalarVectorView which wraps a pointer to a number and makes it behave like a single entry vector. Using

auto&& xv = toVector(x);

will either forward the (const) reference to x or create a temporary ScalarVectorView pointing to x depending on wheter is satisfies IsNumber.

Edited by Carsten Gräser

Merge request reports

Loading