-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Logic cleanups for basic_string
#3862
Logic cleanups for basic_string
#3862
Commits on Jul 27, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 45e738d - Browse repository at this point
Copy the full SHA 45e738dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9f726f9 - Browse repository at this point
Copy the full SHA 9f726f9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 02b90ed - Browse repository at this point
Copy the full SHA 02b90edView commit details -
Configuration menu - View commit details
-
Copy full SHA for ca0953a - Browse repository at this point
Copy the full SHA ca0953aView commit details -
Configuration menu - View commit details
-
Copy full SHA for ef708ed - Browse repository at this point
Copy the full SHA ef708edView commit details -
Configuration menu - View commit details
-
Copy full SHA for d3f736b - Browse repository at this point
Copy the full SHA d3f736bView commit details -
Introduce
_Entails_large_string
; replace wild `_Large_string_engage……d` logic with it
Configuration menu - View commit details
-
Copy full SHA for e1ce499 - Browse repository at this point
Copy the full SHA e1ce499View commit details -
Configuration menu - View commit details
-
Copy full SHA for e050101 - Browse repository at this point
Copy the full SHA e050101View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2b966c6 - Browse repository at this point
Copy the full SHA 2b966c6View commit details -
Configuration menu - View commit details
-
Copy full SHA for d0c9dfc - Browse repository at this point
Copy the full SHA d0c9dfcView commit details
Commits on Jul 28, 2023
-
Configuration menu - View commit details
-
Copy full SHA for cb010d7 - Browse repository at this point
Copy the full SHA cb010d7View commit details -
Introduce
_Allocate_for_capacity
and_Deallocate_for_capacity
and…… apply them wherever suitable; merge `_Start_element_lifetimes` into `_Allocate_for_capacity`
Configuration menu - View commit details
-
Copy full SHA for 28c834e - Browse repository at this point
Copy the full SHA 28c834eView commit details -
Fix a misuse of
_Large_string_engaged
(which will otherwise break t……he invariant that string won't do allocations for small capacity)
Configuration menu - View commit details
-
Copy full SHA for 5ba8339 - Browse repository at this point
Copy the full SHA 5ba8339View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9b729de - Browse repository at this point
Copy the full SHA 9b729deView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2b017db - Browse repository at this point
Copy the full SHA 2b017dbView commit details -
Configuration menu - View commit details
-
Copy full SHA for e600d39 - Browse repository at this point
Copy the full SHA e600d39View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6f8a3cb - Browse repository at this point
Copy the full SHA 6f8a3cbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0baefec - Browse repository at this point
Copy the full SHA 0baefecView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9b0e590 - Browse repository at this point
Copy the full SHA 9b0e590View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3a27c90 - Browse repository at this point
Copy the full SHA 3a27c90View commit details
Commits on Aug 9, 2023
-
Rename to avoid macro identifier space
Rename `_ALLOC_MASK`, `_SMALL_STRING_CAPACITY` and `_LEAST_ALLOCATION_SIZE` to avoid the macro identifier namespace. Comment that `_BUF_SIZE` is used by the debugger visualizer (and hence shouldn't be renamed).
Configuration menu - View commit details
-
Copy full SHA for 6ea7f29 - Browse repository at this point
Copy the full SHA 6ea7f29View commit details -
Rename
_Large_string_engaged
to_Large_mode_engaged
... to avoid confusion about size vs. capacity since `_Large_string_engaged()` can be `true` for a very small string with a large capacity.
Configuration menu - View commit details
-
Copy full SHA for a2cb72b - Browse repository at this point
Copy the full SHA a2cb72bView commit details -
Expand
_Entails_large_string
into callsitesWith the addition of `_SMALL_STRING_CAPACITY`, I think the expressions themselves (e.g., `_Count > _SMALL_STRING_CAPACITY`) are more readable than calls to the function.
Configuration menu - View commit details
-
Copy full SHA for 9921deb - Browse repository at this point
Copy the full SHA 9921debView commit details -
"small mode" instead of "SSO mode"
It's more clearly the opposite of "large mode".
Configuration menu - View commit details
-
Copy full SHA for 84b8ced - Browse repository at this point
Copy the full SHA 84b8cedView commit details -
Rename
_Buf_res
and_Released_buffer::_Res
... to the more descriptive `_Actual_allocation_size`.
Configuration menu - View commit details
-
Copy full SHA for 9ed46dc - Browse repository at this point
Copy the full SHA 9ed46dcView commit details -
Don't enumerate users of
_Least_allocation_size
Grepping is quick, and this is very likely to bitrot.
Configuration menu - View commit details
-
Copy full SHA for e2ac4ce - Browse repository at this point
Copy the full SHA e2ac4ceView commit details