add vector_remove_at

This commit is contained in:
chatlanin
2022-03-21 10:42:52 +03:00
parent 6b124255a0
commit f32a1e49a6
10 changed files with 123 additions and 32 deletions

View File

@@ -5,8 +5,8 @@ namespace hack::range
template<typename T, typename... Args>
bool within(const T min, const T max, Args... args)
{
return ((min <= args && max >= args) && ...);
// 1, 5, 2, 3, 4
// ( (1 <= 2 && 5 >= 2) && (1 <= 3 && 5 >= 3) && (1 <= 4 && 5 >= 4) )
return ((min <= args && max >= args) && ...);
}
}