Title: Efficiently processing immutable text | sigcpp
Open Graph Title: Efficiently processing immutable text
X Title: Efficiently processing immutable text
Description: Introduced in C++17, the STL class std::string_view provides more efficient ways than std::string to process immutable (read only) text data. It also provides a safer means to perform read-only operations on character arrays. Overall, using std::string_view for read-only operations on text data can improve execution speed as well as reduce both main-memory usage and executable size. It can also make programs safer and more maintainable. This is Part 1 of a 3-part series on std::string_view. This part focuses on efficiency of std::string_view over std::string. Part 2 focuses on safety. Part 3 provides guidelines for using std::string_view.
Open Graph Description: Introduced in C++17, the STL class std::string_view provides more efficient ways than std::string to process immutable (read only) text data. It also provides a safer means to perform read-only operations on character arrays. Overall, using std::string_view for read-only operations on text data can improve execution speed as well as reduce both main-memory usage and executable size. It can also make programs safer and more maintainable. This is Part 1 of a 3-part series on std::string_view. This part focuses on efficiency of std::string_view over std::string. Part 2 focuses on safety. Part 3 provides guidelines for using std::string_view.
Opengraph URL: https://sigcpp.github.io/2020/04/03/efficiently-processing-immutable-text
Generator: Jekyll v3.9.3
Domain: sigcpp.github.io
{"@context":"https://schema.org","@type":"BlogPosting","dateModified":"2020-04-03T00:00:00+00:00","datePublished":"2020-04-03T00:00:00+00:00","description":"Introduced in C++17, the STL class std::string_view provides more efficient ways than std::string to process immutable (read only) text data. It also provides a safer means to perform read-only operations on character arrays. Overall, using std::string_view for read-only operations on text data can improve execution speed as well as reduce both main-memory usage and executable size. It can also make programs safer and more maintainable. This is Part 1 of a 3-part series on std::string_view. This part focuses on efficiency of std::string_view over std::string. Part 2 focuses on safety. Part 3 provides guidelines for using std::string_view.","headline":"Efficiently processing immutable text","mainEntityOfPage":{"@type":"WebPage","@id":"https://sigcpp.github.io/2020/04/03/efficiently-processing-immutable-text"},"url":"https://sigcpp.github.io/2020/04/03/efficiently-processing-immutable-text"}
| None | IE=edge |
| og:locale | en_US |
| og:site_name | sigcpp |
| og:type | article |
| article:published_time | 2020-04-03T00:00:00+00:00 |
| twitter:card | summary |
Links:
Viewport: width=device-width, initial-scale=1, user-scalable=no