#include <cstdio> #include <array> int main(int argc, const char *argv[]) { std::array<int, 5> foo; foo[0] = 1; foo[1] = 2; printf("front %d\n", foo.front()); printf("size %d\n", foo.size()); printf("max %d\n", foo.max_size()); printf("back %d\n", foo.back()); foo.fill(0); printf("back %d\n", foo.back()); printf("%d\n", foo[896]); return 0; }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 15129 | zachwhaley | Add practice directory |