~/talk

std::basic_string: for more than just text

Talkat CppCon 2018 · 2018-09-23..09-28· [rust]
links:none on file
slides:none on file

Claims that std::basic_string is a general-purpose contiguous container, not just text, and shows using it for bits, named bit directions, and aggregating timestamps for a C API. Demonstrates using the += and data() string API instead of vector append, and shows small string optimization saving heap new/delete — a three-element example compiles without allocation. Replaces vector of points with basic_string of a non-char type and reports equal or better performance.

AI-written summary · about

~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.