Skip to content

Comments

🎨 Adjust type shrink/expand functions#330

Open
elbeno wants to merge 1 commit intointel:mainfrom
elbeno:shrink-expand-finesse
Open

🎨 Adjust type shrink/expand functions#330
elbeno wants to merge 1 commit intointel:mainfrom
elbeno:shrink-expand-finesse

Conversation

@elbeno
Copy link
Contributor

@elbeno elbeno commented Feb 23, 2026

Problem:

  • Sometimes it would be more convenient to call shrink(x) or expand(y) with existing values rather than using e.g. shrink_t<std::remove_cvref_t<decltype(x)>> and the expand_t equivalent.

Solution:

  • Add appropriate shrink and expand functions.

@elbeno elbeno force-pushed the shrink-expand-finesse branch 2 times, most recently from ac610d7 to ee0ce93 Compare February 23, 2026 04:33
Problem:
- Sometimes it would be more convenient to call `shrink(x)` or `expand(y)` with
  existing values rather than using e.g.
  `shrink_t<std::remove_cvref_t<decltype(x)>>` and the `expand_t` equivalent.

Solution:
- Add appropriate `shrink` and `expand` functions.
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

Successfully merging this pull request may close these issues.

1 participant