Skip to content

Use string views #104

@heinezen

Description

@heinezen

String views can reduce the amount of copy operations we have to do internally, e.g. for resolving fqons.

For example, string views could be helpful in this situation:

member_id = "modpack.path.to.Object";
std::vector<std::string> member_parts = util::split(member_id, '.');

The 2nd line could be a vector string views instead of normal strings

Metadata

Metadata

Assignees

No one assigned

    Labels

    c++involves C++ codegood first issueSimple thing, suitable for newcomersimprovementimproves existing functionalityproposalpending discussion about something to do

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions