Files
Gennaro Prota bf20b809ec Add basic_static_string::available()
This returns max_size() - size(), i.e. the number of characters that can
still be inserted before the string reaches its capacity. Intended as a
shorthand for capacity-capped writes in combination with the
pos/count-taking overloads of append, assign, and insert:

  str.append(sv, 0, str.available());

Addresses the ergonomic complaint in issue #81 without expanding the
overload set.

Closes issue #81.
2026-04-22 10:06:00 +02:00
..
2020-02-26 23:51:10 -05:00