Skip to content

Interesting #4

@OneManMonkeySquad

Description

@OneManMonkeySquad

Idea. I build the same thing at work, but the data lives "exploded" in a single container.

mult_vector<int, float, bool> data;
data.push_back(42, 0.25f, true);
data[0] // std::tuple<int, float, bool>

template<typename Ts...> class multi_vector { std::tuple<std::vector<Ts>...> c_data; };

You can basically offer a SOA container which looks and feels like a common vector.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions