Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding a cell view #25

Open
reder2000 opened this issue Apr 21, 2022 · 0 comments
Open

adding a cell view #25

reder2000 opened this issue Apr 21, 2022 · 0 comments

Comments

@reder2000
Copy link
Contributor

Rather than building a full string, returning a string view may be more efficient in some cases (suppose one wants to drop a column).
Something like:

class Cell { [...]
std::string_view read_view() const {
return std::string_view(buffer_ + start_, end_ - start_);
}

[...]
};

Even for conversion, it's probably enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant