Skip to content
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

更改为 std::size_t #247

Merged
merged 2 commits into from
Jan 18, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/群友提交/第08题/初時雨.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
//msvc
#include <iostream>

template<class Ty, size_t size>
template<class Ty, std::size_t size>
struct array {
Ty* begin() { return arr; };
Ty* end() { return arr + size; };
Expand All @@ -15,4 +14,4 @@ int main() {
for (const auto& i : arr) {
std::cout << i << ' ';
}
}
}
Loading