I was just wondering, what is a good rule of thumb for industrial-grade code when deciding whether to use the std::array template vs a built-in array?
nathan.pavlovsky
0
Junior Poster
Recommended Answers
Jump to PostAt this point the only benefit of a built-in array would be slightly more concise declaration syntax. But the functional benefits of std::array blow that out of the water.
As a rule of thumb, I'd say prefer std::array until you have a good reason to pick a built-in array.
All 3 Replies
deceptikon
1,790
Code Sniper
Team Colleague
Featured Poster
nathan.pavlovsky
0
Junior Poster
mike_2000_17
2,669
21st Century Viking
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.