Check out Embarcadero: http://www.calebcurry.com/RAD Welcome back! Today we are talking discussing arrays vs vectors vs STL arrays! Read the blog: …

source

4 COMMENTS

  1. The largest concentration of wrongness in the whole video:

    "Usually, problems with your application's speed are not going to come from what data type you used"

    Outdated "lessons" like this take YEARS to unlearn and cause untold amounts of ruin. This was forgivable in 1990's compsci textbooks, but not anymore.

    Meanwhile in reality:

    https://youtu.be/fHNmRkzxHWs?t=2085

  2. You can get the size of a C-style array using std::size. It has the same limitations as sizeof but it's easier and safer to use because it will fail to compile rather than give you the wrong result if you accidentally use it on a pointer.

LEAVE A REPLY

Please enter your comment!
Please enter your name here