Skip to content

standardize how we templatize#91

Merged
cameroncuster merged 8 commits intomainfrom
seg_tree_nit
Jul 16, 2024
Merged

standardize how we templatize#91
cameroncuster merged 8 commits intomainfrom
seg_tree_nit

Conversation

@lrvideckis
Copy link
Member

@lrvideckis lrvideckis commented Jul 11, 2024

whenever you need to templatize a type, and and op/compare (examples: RMQ, seg tree, mono st) let's standardize it like:

<T: Clone, F: Fn(&T, &T) -> T>

Copy link
Member

@cameroncuster cameroncuster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just kinda swept through this one, seems good, makes sense

@cameroncuster cameroncuster merged commit 06b7980 into main Jul 16, 2024
@cameroncuster cameroncuster deleted the seg_tree_nit branch July 16, 2024 15:30
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.

2 participants

Comments